VMSF_DELTA filter in unrar allows arbitrary memory write It appears that the VMSF_DELTA memory corruption that was reported to Sophos AV in 2012 (and fixed there) was actually inherited from upstream unrar. For unknown reasons, whoever fixed the bug did not report this to upstream unrar, and the bug seems to have persisted there to this day. The bug is sometimes called "Sophos Anti-Virus RAR VMSF_DELTA Filter Signedness Error", and referenced in the following links: https://community.sophos.com/kb/en-us/118424#six http://telussecuritylabs.com/threats/show/TSL20121207-01 The issue is in the following code: case VMSF_DELTA: { int DataSize=R[4],Channels=R[0],SrcPos=0,Border=DataSize*2; if ((uint)DataSize>=VM_MEMSIZE/2) break; // Bytes from same channels are grouped to continual data blocks, // so we need to place them back to their interleaving positions. for (int CurChannel=0;CurChannel