kiwanami/nginx-gridfs — pull request #2 by abbat (2011-10-31 16:15:41+00:00)
Title: NaN workaround for gridfile_get_numchunks (mongo_c_driver/src/gridfs.c).

gridfile_get_numchunks returns -2147483648 when chunkSize is 0 (converting NaN to int). Conversion this int to ngx_uint_t produce 2147483648 and next ngx_pcalloc throws out of memory.