From 0c070a35e5d8ec5dceae5e3f4f5a72e95a0e392d Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sun, 28 Sep 2014 12:17:02 -0700 Subject: Adding out-of-bounds checks to AIGER readers. --- src/base/io/ioReadAiger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base') diff --git a/src/base/io/ioReadAiger.c b/src/base/io/ioReadAiger.c index ab865326..1d9ca877 100644 --- a/src/base/io/ioReadAiger.c +++ b/src/base/io/ioReadAiger.c @@ -477,7 +477,7 @@ Abc_Ntk_t * Io_ReadAiger( char * pFileName, int fCheck ) // read the names if present pCur = pSymbols; - if ( *pCur != 'c' ) + if ( pCur < pContents + nFileSize && *pCur != 'c' ) { int Counter = 0; while ( pCur < pContents + nFileSize && *pCur != 'c' ) -- cgit v1.2.3