Address CVE-2019-18178.

Link to CVE details -- https://nvd.nist.gov/vuln/detail/CVE-2019-18178
This commit is contained in:
Yuhui Zheng
2019-11-19 18:04:43 -08:00
parent 7daf0485d8
commit af86d275b5

View File

@@ -2967,12 +2967,13 @@ FF_Error_t xError;
}
}
#endif
ffconfigFREE( pxFile );
if( FF_isERR( xError ) == pdFALSE )
{
xError = FF_FlushCache( pxFile->pxIOManager ); /* Ensure all modified blocks are flushed to disk! */
}
ffconfigFREE( pxFile );
}
while( pdFALSE );