From: Owen Shepherd Date: Wed, 26 Dec 2012 18:50:04 +0000 (+0000) Subject: _PDCLIB_scan: Had incorrect upper bound on field width causing integer overflow X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=commitdiff_plain;h=0d2d9bf95c16791af435aa173176883588d030d3 _PDCLIB_scan: Had incorrect upper bound on field width causing integer overflow --- diff --git a/functions/_PDCLIB/scan.c b/functions/_PDCLIB/scan.c index 57f9831..7e6c42c 100644 --- a/functions/_PDCLIB/scan.c +++ b/functions/_PDCLIB/scan.c @@ -162,7 +162,7 @@ const char * _PDCLIB_scan( const char * spec, struct _PDCLIB_status_t * status ) status->width = (int)strtol( spec, (char**)&spec, 10 ); if ( spec == prev_spec ) { - status->width = SIZE_MAX; + status->width = INT_MAX; } /* Optional length modifier