From 4707538d40badd841484e8c639ac77478d945468 Mon Sep 17 00:00:00 2001 From: Dipin Hora Date: Fri, 22 Nov 2024 22:52:46 -0500 Subject: [PATCH] Add release notes --- .release-notes/4540.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .release-notes/4540.md diff --git a/.release-notes/4540.md b/.release-notes/4540.md new file mode 100644 index 0000000000..879ddcf203 --- /dev/null +++ b/.release-notes/4540.md @@ -0,0 +1,3 @@ +## Fix minor buffer out of bounds access bug in compiler + +Previously, the compiler error reporting had a minor buffer out of bounds access bug where it read one byte past the end of a buffer as part of an if condition before checking that the offset was smaller than the buffer length. This was fixed by switching the order of the if condition checks so that the check that the offset is smaller than the buffer length happens before reading the value from the buffer to prefer the out of bounds access issue.