Fix stack-use-after-scope in folly::json::serialize
Summary: [Folly] Fix stack-use-after-scope in `folly::json::serialize` internals in `std::sort` comparison in `Printer::printObject`. Also avoid an extra layer of indirection around the comparison function. Possibly useful because the function is called repeatedly within the loop. Fixes #1190. Reviewed By: vitaut Differential Revision: D17560072 fbshipit-source-id: 787584dc1f7d70762a712869788f8d892dd19ed5
Showing
Please register or sign in to comment