vfscanf: fix possible invalid free due to uninitialized variable use
vfscanf() may use the variable 'alloc' uninitialized when taking the
branch introduced by commit b287cd745c.
Spotted by clang.
This commit is contained in:
1 parent
ea6d7847ac
commit
a62df9c9b7
1 file changed
+1
-1
+1
-1
@@ -57,7 +57,7 @@ int vfscanf(FILE *restrict f, const char *restrict fmt, va_list ap)
|
||||
{
|
||||
int width;
|
||||
int size;
|
||||
int alloc;
|
||||
int alloc = 0;
|
||||
int base;
|
||||
const unsigned char *p;
|
||||
int c, t;
|
||||
|
||||
Reference in new issue
Block a user