Branch: Tag:

2017-06-29

2017-06-29 21:03:44 by Arne Goedeke <el@laramies.com>

Stdio.Buffer: fixed integer overflow in read_json()

If the decoded JSON is larger than INT_MAX, it could not be correctly
decoded from a buffer.

2117:    */    PIKEFUN mixed read_json(int|void require_whitespace)    { -  int stop, whites = 0; +  INT_TYPE whites = 0; +  ptrdiff_t stop;    static ptrdiff_t(*parse_json_pcharp)(PCHARP,size_t,int,char**);    char *err = NULL;    if( require_whitespace )