A heap buffer overflow was discovered in copycompressedbytes in decode_r2007.c in dwgread before 0.12.4 via a crafted dwg file.