summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/utils.cpp
AgeCommit message (Collapse)Author
2024-05-17SERVER-84609 Define a version for Aladdin MD5 (#19406)adriangzz
GitOrigin-RevId: 6f66f4d07b5c7e263d18d028410f445e943c2d88
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2022-01-13SERVER-27209 Eliminate dangerous BSONElement string extraction methodsMatt Kneiser
- 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
2019-12-18SERVER-44623 Rework JSON generation from BSONObjHenrik Edin
- Extended Canonical/Relaxed 2.0.0 is supported - Using libfmt instead of stringstream as internal buffer - JSON parser can parse Extended Canonical/Relaxed and Strict formats - Removed TenGen format
2019-02-13SERVER-39560 - remove leading blank line on all C++ filesBilly Donahue
Remove leading comments that are just stating the filename. Move any file-level comments below the copyright banner. Remove leading blank lines.
2018-10-22SERVER-37651 Update header files with new licenseRamon Fernandez
2018-04-27SERVER-31508: Make Javascript sleep interruptableSpencer Jackson
2016-09-16SERVER-26002 Make sure javascript sleep isn't interruptedJonathan Reams
2016-08-15SERVER-24146 Fix JSON.stringify regression, and add new "tostrictjson" shell ↵Adam Chelminski
util function for printing strict JSON
2016-04-07SERVER-23547 Make the multiversion concept of "latest" more precise.Andy Schwerin
This supports multiversion tests involving subversions, like 3.2.1 compared to 3.2 latest.
2015-06-20SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto
2013-12-10SERVER-8886 Final set of license exceptions for OpenSSLIan Whalen
2013-01-18SERVER-8104: clean up js global objectBen Becker
2012-09-27SERVER-7187 Make shell version() function return the version instead of just ↵Spencer T Brody
printing it
2012-05-27Code cleanup prior to fixing SERVER-5842Tad Marshall
Make three injected native JavaScript routines static since they are not referenced outside this file. Name them according to the convention in engine_spidermonkey.cpp. Use uassert consistently. Make (user) error messages correct, consistent and informative.
2012-05-20Some cleanup of headers and whitespaceTad Marshall
Try to impose current kernel style guide rules for include files on a subset of files: include what you use, start include paths from "mongo/", group and sort includes alphabetically. Changed tabs to spaces in a few places, fixed alignment where tabs had throw it off.
2012-04-10Remove ScriptEngine::Unlocker, which is no longer used.Aaron
2012-03-26replace assert with verify SERVER-1259Eliot Horowitz
2011-12-24bulk move of code to src/ SERVER-4551Eliot Horowitz