Skip to content
Snippets Groups Projects
Commit ce01054e authored by Toomas Soome's avatar Toomas Soome Committed by Vladimir Serbinenko
Browse files

lz4: Fix pointer overflow

parent feef882f
No related branches found
No related tags found
No related merge requests found
......@@ -184,6 +184,8 @@ LZ4_uncompress_unknownOutputSize(const char *source,
}
}
/* copy literals */
if ((grub_addr_t) length > ~(grub_addr_t)op)
goto _output_error;
cpy = op + length;
if ((cpy > oend - COPYLENGTH) ||
(ip + length > iend - COPYLENGTH)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment