[diff] IDEA-96260 Fix IOOBE: use actual offset value
(cherry picked from commit 13c5fe61e157b3defa8b39b42d1743535b6ed1ab)