The vulnerability is an out-of-bounds write within the zipstream decompression code bundled with Open Babel. The analysis of the provided patch commit d4621d417c167b50cc8ce7aa3a02557e5b2b81c5 pinpoints the exact location of the flaw. The file src/zipstreamimpl.h contains the vulnerable function zipstream::basic_unzip_streambuf::underflow. Inside this function, a memcpy operation was used for a buffer refill. However, under certain conditions when processing a crafted gzip file, the source and destination memory regions for this memcpy could overlap. The C/C++ standard states that memcpy's behavior is undefined for overlapping regions, which in this case led to a memory corruption vulnerability. The fix was to replace memcpy with memmove, a function that is guaranteed to work correctly even with overlapping memory. Any user of the Open Babel library that parses a malicious gzip-compressed file would trigger this vulnerable function.