We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ca350a commit 63d79b6Copy full SHA for 63d79b6
src/libbson/src/bson/bson-json.c
@@ -984,10 +984,13 @@ _bson_json_read_string (bson_json_reader_t *reader, /* IN */
984
}
985
} break;
986
case BSON_JSON_LF_DOUBLE: {
987
- _bson_json_parse_double (reader,
988
- (const char *) val,
989
- vlen,
990
- &bson->bson_type_data.v_double.value);
+ if (!_bson_json_parse_double (reader,
+ (const char *) val,
+ vlen,
+ &bson->bson_type_data.v_double.value)) {
991
+ /* the error is set, return and let the reader exit */
992
+ return;
993
+ }
994
995
case BSON_JSON_LF_DATE: {
996
int64_t v64;
0 commit comments