summaryrefslogtreecommitdiff
path: root/src/mongo/db/field_parser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser2022-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Fix: Change return type of BSONObj::getStringField to include size (StringData vs. char*). A char* only contains the data with an ending NULL termination. Whereas a StringData contains data + size so caller knows how to interpret data if there are embedded NULLs. - Cleanup: Remove old tag - CachedSizeTag - that disambiguated BSONElement ctors. A dangling reference to 'maxLen' in a comment led me to this historical issue. $ git log -S'maxLen' -- src/mongo/bson/bsonelement.h commit 0d38ef5 Author: Mathias Stearn mathias@10gen.com Date: Tue Dec 19 14:23:08 2017 -0500 SERVER-32302 Compute BSONElement sizes eagerly - Test: Add tests for NULL bytes being returned by getStringField - $ ninja -j400 +bson_obj_test - Cleanup: Move BSONElement::valuestr() from public to private - Cleanup: Remove BSONElement::valuestrsafe() - Cleanup: Remove all external callers of valuestr/valuestrsafe and cleanup their callsites with better alternatives. - Cleanup: Make multi-line BSONElement & BSONObj public API comments conform to style guidelines - Nit: Fix spelling in a comment
* SERVER-45214 FieldParser::extractNumber fails ubsan for NaNsGeert Bosch2019-12-221-2/+5
|
* SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue2019-02-131-1/+0
| | | | | | Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
* SERVER-37651 Update header files with new licenseRamon Fernandez2018-10-221-8/+10
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-370/+346
|
* SERVER-18798 Move FindAndModifyRequest to the request/response libraryKaloian Manassiev2015-06-031-2/+2
|
* SERVER-17880 Rename OpTime to TimestampEric Milkie2015-04-071-6/+6
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+1
|
* SERVER-14041 enhance secondaryThrottle parameterRandolph Tan2014-07-161-1/+1
| | | | | | | This reverts commit 37f2a1e3b724dbd9e1f8eafd4ac87c5bf613c048 (undo revert). This reverts commit d60fd22dec1c0bd104622eab463cdbba18bf11a9 (undo revert). Fix Windows compile failure. Add more defensive checks.
* Revert "SERVER-14041 enhance secondaryThrottle parameter"Randolph Tan2014-07-151-1/+1
| | | | This reverts commit fa1233fbe4a48ef0675820f381987f1df4f42f75.
* SERVER-14041 enhance secondaryThrottle parameterRandolph Tan2014-07-151-1/+1
|
* SERVER-5800 convert 2d predicate queries into covered index scansGreg Studer2014-06-101-0/+61
|
* SERVER-12139 allow BSONElement parsing for single-pass parse speedupGreg Studer2014-01-071-70/+145
|
* SERVER-9469 add full support for Timestamp/OpTime to field parserEric Milkie2013-12-201-1/+26
|
* SERVER-11968 Write commands allow illegal collection namesRandolph Tan2013-12-091-1/+2
|
* SERVER-10519 aggregate upsert and n stats in mongosGreg Studer2013-11-041-0/+24
|
* Move declaration of _genFieldErrMsg in FieldParser into the header fileSpencer T Brody2013-09-201-11/+0
|
* SERVER-10521 Types for write commands.Alberto Lerner2013-09-121-3/+3
|
* SERVER-8886 Add OpenSSL exception to files in src/mongo/dbIan Whalen2013-09-061-0/+12
|
* SERVER-9468 Move s/field-parser* to db/Jason Rassi2013-06-031-0/+285