You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by GitBox <gi...@apache.org> on 2019/12/20 16:48:55 UTC

[GitHub] [incubator-datasketches-cpp] AlexanderSaydakov commented on issue #76: Buffer overflow in ThetaSketch intersection update

AlexanderSaydakov commented on issue #76: Buffer overflow in ThetaSketch intersection update
URL: https://github.com/apache/incubator-datasketches-cpp/issues/76#issuecomment-567991400
 
 
   For me the problem occurs without serialize-deserialize and without converting updatable sketch to compact sketch:
   ```
   void random() {
       std::random_device dev;
       std::mt19937 rng(dev());
       std::uniform_int_distribution<std::mt19937::result_type> dist(1, 999999);
       theta_intersection intersection;
         for (int i = 0; i < 10; i++) {
           update_theta_sketch update_sketch = update_theta_sketch::builder().build();
           for (int j = 0; j < 1000000; j++) update_sketch.update(dist(rng));
           intersection.update(update_sketch);
         }
     }
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org