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;a=commitdiff_plain;h=b43055b06b74c0a45128531e4f18bef0c5a49efc _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