Identical commit taken as-is from #25548 for backport
[24.x] [gui] Bugfix: Check for readlink buffer overflow and handle gracefully #26434
pull maflcko wants to merge 1 commits into bitcoin:24.x from luke-jr:readlink_overflow_check changing 1 files +3 −2-
maflcko commented at 12:19 PM on November 1, 2022: member
-
e049fd76f0
Bugfix: Check for readlink buffer overflow and handle gracefully
If readlink returns the size of the buffer, an overflow may have (safely) occurred. Pass a buffer size of MAX_PATH+1 (the size of the actual buffer) to detect this scenario.
- fanquake added this to the milestone 24.0 on Nov 1, 2022
- fanquake added the label Backport on Nov 1, 2022
- fanquake requested review from hebasto on Nov 1, 2022
- hebasto approved
-
hebasto commented at 1:00 PM on November 1, 2022: member
ACK e049fd76f0d57c1e6400fbfbaf4cc6ebe540f16f
- fanquake merged this on Nov 1, 2022
- fanquake closed this on Nov 1, 2022
- bitcoin locked this on Nov 1, 2023
Labels
Milestone
24.0