Skip to content

Commit 527ee8e

Browse files
committed
Merge branch 'master' of https://github.com/lemire/simdjson
2 parents 2a3e9b5 + 1f22ed9 commit 527ee8e

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

singleheader/amalgamation_demo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
1+
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
22

33
#include <iostream>
44
#include "simdjson.h"

singleheader/simdjson.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
1+
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
22
#include "simdjson.h"
33

44
/* used for http://dmalloc.com/ Dmalloc - Debug Malloc Library */
@@ -797,6 +797,10 @@ WARN_UNUSED
797797
base = next_base;
798798

799799
pj.n_structural_indexes = base;
800+
// a valid JSON file cannot have zero structural indexes - we should have found something
801+
if (!pj.n_structural_indexes) {
802+
return false;
803+
}
800804
if(base_ptr[pj.n_structural_indexes-1] > len) {
801805
fprintf( stderr,"Internal bug\n");
802806
return false;

singleheader/simdjson.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* auto-generated on Fri 22 Feb 2019 15:42:34 EST. Do not edit! */
1+
/* auto-generated on Fri 22 Feb 2019 19:16:31 EST. Do not edit! */
22
/* begin file /Users/lemire/CVS/github/simdjson/include/simdjson/portability.h */
33
#ifndef SIMDJSON_PORTABILITY_H
44
#define SIMDJSON_PORTABILITY_H

0 commit comments

Comments
 (0)