mirror of
https://github.com/Cisco-Talos/clamav.git
synced 2026-05-08 15:47:28 -04:00
Fix use of uninit'ed buffer.
This commit is contained in:
@@ -227,6 +227,7 @@ cli_file_t cli_filetype2(fmap_t *map, const struct cl_engine *engine)
|
||||
* we just tried that above, and failed */
|
||||
if((encoding = encoding_detect_bom(buff, bread))) {
|
||||
unsigned char decodedbuff[(MAGIC_BUFFER_SIZE+1)*2];
|
||||
memset(decodedbuff, 0, sizeof(decodedbuff));
|
||||
m_area_t in_area, out_area;
|
||||
|
||||
in_area.buffer = (unsigned char *) buff;
|
||||
|
||||
Reference in New Issue
Block a user