An issue was discovered in icoutils 0.31.1. A buffer overflow was observed in the "decode_ne_resource_id" function in the "restable.c" source file. This is happening because the "len" parameter for memcpy is not checked for size and thus becomes a negative integer in the process, resulting in a failed memcpy. This affects wrestool.
https://security.gentoo.org/glsa/201801-12
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854050
http://www.securityfocus.com/bid/96292