A proposed OpenJDK fix addresses a memory overwrite in the x86-64 AVX-512 VBMI path of the Base64 decoder. The defect is in `StubGenerator::generate_base64_decodeBlock()`, where the `L_finalBit` handling processes 1-63 leftover input bytes using a masked vector operation. It calculates the output size as three bytes for every complete four-byte group, but a short, padded tail can make the decoder write past the intended output buffer. The report says the problem occurs only with invalid input: valid Base64 input lengths are multiples of four. The change was submitted as a one-commit pull request on September 9, 2026, under a description identifying an overwrite on a short padded tail.
The report connects the bug to Adoptium support investigations, including a JVM crash in `JVM_ArrayCopy` and a crash on a compiler thread; both linked reports are marked closed. OpenJDK’s bot applied the hotspot-compiler label, set a requirement for two reviews, and warned that the change was not yet ready for integration. No reviews appear in the pull request. After more than eight weeks of inactivity, a bot warned that it would be closed unless activity resumed; the contributor closed it on November 4, 2026. The provided details therefore describe a reported decoder defect and an attempted fix, not a confirmed change merged into OpenJDK.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.