davisp opened a new pull request #1574: Fix builtin _sum reduce function
URL: https://github.com/apache/couchdb/pull/1574
 
 
   The builting _sum reduce function has no protection against overflowing
   reduce values. Users can emit objects with enough unique keys to cause
   the builtin _sum to create objects that are exceedingly large in the
   inner nodes of the view B+Tree.
   
   This change adds the same logic that applies to JavaScript reduce
   functions to check if a reduce function is properly reducing its input.
   
   ## Testing recommendations
   
   make check
   
   ## Checklist
   
   - [x] Code is written and works correctly;
   - [ ] Changes are covered by tests;
   - [ ] Documentation reflects the changes;
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to