]> git.ipfire.org Git - thirdparty/cups.git/commit
Fix bounds of description 605/head
authorRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 30 Jan 2023 22:37:09 +0000 (17:37 -0500)
committerRose <83477269+AtariDreams@users.noreply.github.com>
Mon, 30 Jan 2023 23:15:17 +0000 (18:15 -0500)
commit5a037cccf44d431a09ba3bdba825ed57cbfd8b49
tree9d2155b734022af6e05e3439cf85b227c3ad16a5
parentfa46f4e534c2b6df68150dc81b79969a12335e68
Fix bounds of description

description is 256. However, buffer is 258, which is a problem because we are possibly exceeding the bounds of description when we access description[2 * i + 2] as i approaches 256. I refactored the code to make it more obvious that this should be avoided.
backend/usb-darwin.c