Merge pull request #377 from haberman/json-parse-null
Fixed "NULL + 0" UB in JSON encoder and decoder.pull/13171/head
commit
53f5d9f69b
8 changed files with 45 additions and 11 deletions
@ -1,24 +1,33 @@ |
|||||||
/* See port_def.inc. This should #undef all macros #defined there. */ |
/* See port_def.inc. This should #undef all macros #defined there. */ |
||||||
|
|
||||||
#undef UPB_MAPTYPE_STRING |
|
||||||
#undef UPB_SIZE |
#undef UPB_SIZE |
||||||
#undef UPB_PTR_AT |
#undef UPB_PTR_AT |
||||||
#undef UPB_READ_ONEOF |
#undef UPB_READ_ONEOF |
||||||
#undef UPB_WRITE_ONEOF |
#undef UPB_WRITE_ONEOF |
||||||
|
#undef UPB_MAPTYPE_STRING |
||||||
#undef UPB_INLINE |
#undef UPB_INLINE |
||||||
#undef UPB_ALIGN_UP |
#undef UPB_ALIGN_UP |
||||||
#undef UPB_ALIGN_DOWN |
#undef UPB_ALIGN_DOWN |
||||||
#undef UPB_ALIGN_MALLOC |
#undef UPB_ALIGN_MALLOC |
||||||
#undef UPB_ALIGN_OF |
#undef UPB_ALIGN_OF |
||||||
|
#undef UPB_LIKELY |
||||||
|
#undef UPB_UNLIKELY |
||||||
#undef UPB_FORCEINLINE |
#undef UPB_FORCEINLINE |
||||||
#undef UPB_NOINLINE |
#undef UPB_NOINLINE |
||||||
#undef UPB_NORETURN |
#undef UPB_NORETURN |
||||||
|
#undef UPB_PRINTF |
||||||
#undef UPB_MAX |
#undef UPB_MAX |
||||||
#undef UPB_MIN |
#undef UPB_MIN |
||||||
#undef UPB_UNUSED |
#undef UPB_UNUSED |
||||||
#undef UPB_ASSUME |
#undef UPB_ASSUME |
||||||
#undef UPB_ASSERT |
#undef UPB_ASSERT |
||||||
#undef UPB_UNREACHABLE |
#undef UPB_UNREACHABLE |
||||||
|
#undef UPB_SETJMP |
||||||
|
#undef UPB_LONGJMP |
||||||
|
#undef UPB_PTRADD |
||||||
|
#undef UPB_FASTTABLE_SUPPORTED |
||||||
|
#undef UPB_FASTTABLE |
||||||
|
#undef UPB_FASTTABLE_INIT |
||||||
#undef UPB_POISON_MEMORY_REGION |
#undef UPB_POISON_MEMORY_REGION |
||||||
#undef UPB_UNPOISON_MEMORY_REGION |
#undef UPB_UNPOISON_MEMORY_REGION |
||||||
#undef UPB_ASAN |
#undef UPB_ASAN |
||||||
|
Loading…
Reference in new issue