Browse Source

Allow FE overflow for safe usage of strtod in corrupt json

master
Con Kolivas 9 years ago
parent
commit
83575ba311
  1. 2
      src/ckpool.c

2
src/ckpool.c

@ -1449,7 +1449,7 @@ int main(int argc, char **argv)
ckpool_t ckp; ckpool_t ckp;
/* Make significant floating point errors fatal to avoid subtle bugs being missed */ /* Make significant floating point errors fatal to avoid subtle bugs being missed */
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW ); feenableexcept(FE_DIVBYZERO | FE_INVALID);
json_set_alloc_funcs(json_ckalloc, free); json_set_alloc_funcs(json_ckalloc, free);
global_ckp = &ckp; global_ckp = &ckp;

Loading…
Cancel
Save