File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments