From b43055b06b74c0a45128531e4f18bef0c5a49efc Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Wed, 26 Dec 2012 18:50:04 +0000 Subject: [PATCH] _PDCLIB_scan: Had incorrect upper bound on field width causing integer overflow --- functions/_PDCLIB/scan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0