diff options
author | Francesco Colista <francesco.colista@gmail.com> | 2012-05-07 14:34:17 +0000 |
---|---|---|
committer | Francesco Colista <francesco.colista@gmail.com> | 2012-05-07 14:35:12 +0000 |
commit | 6252d05fb4208d70d36882cde2b0ee1b17c48a99 (patch) | |
tree | 538e5d7f43a6c6f267c2865aaba7f1b9978d5b5f /main/cvechecker/cvecheck-c.patch | |
parent | cf51994bd3479e62c75255aacce17764cfcf4be0 (diff) | |
download | aports-6252d05fb4208d70d36882cde2b0ee1b17c48a99.tar.bz2 aports-6252d05fb4208d70d36882cde2b0ee1b17c48a99.tar.xz |
main/cvechecker: fixed buffsize error causing parsing error
Diffstat (limited to 'main/cvechecker/cvecheck-c.patch')
-rw-r--r-- | main/cvechecker/cvecheck-c.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/cvechecker/cvecheck-c.patch b/main/cvechecker/cvecheck-c.patch new file mode 100644 index 0000000000..32ac856f12 --- /dev/null +++ b/main/cvechecker/cvecheck-c.patch @@ -0,0 +1,18 @@ +--- cvechecker-3.1/src/cvecheck.c ++++ cvechecker-3.1/src/cvecheck.c +@@ -1255,6 +1255,7 @@ + } + + cvelist = fopen(arg->cvedata, "r"); ++ bzero (buffer, BUFFERSIZE); + while (fgets(buffer, sizeof(buffer), cvelist) != 0) { + int cvelength = 0; + +@@ -1302,6 +1303,7 @@ + mysql_dbimpl_store_cve_in_db_checkpoint(ws); + }; + linenum++; ++ bzero (buffer, BUFFERSIZE); + }; + + if (ws->dbtype == sqlite) |