You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ZhangHuiGui (via GitHub)" <gi...@apache.org> on 2024/02/28 14:00:27 UTC

[I] [C++] An implicit buffer-overflow in decimal_benchmark [arrow]

ZhangHuiGui opened a new issue, #40276:
URL: https://github.com/apache/arrow/issues/40276

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   An implicit buffer-overflow bug in blow codes:
   ```c
     for (int x = 0; x < kValueSize; x++) {
       v.emplace_back(100 + x, 100 + x);
     }
   
     for (auto _ : state) {
       BasicDecimal128 result;
       for (int x = 0; x < 100; x++) { // should be kValueSize
         result += v[x];
       }
       benchmark::DoNotOptimize(result);
     }
   ```
   
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] An implicit buffer-overflow in decimal_benchmark [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on issue #40276:
URL: https://github.com/apache/arrow/issues/40276#issuecomment-1969244881

   Issue resolved by pull request 40277
   https://github.com/apache/arrow/pull/40277


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [C++] An implicit buffer-overflow in decimal_benchmark [arrow]

Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou closed issue #40276: [C++]  An implicit buffer-overflow in decimal_benchmark
URL: https://github.com/apache/arrow/issues/40276


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org