[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
  1. maflcko commented at 12:19 pm on November 1, 2022: member
    Identical commit taken as-is from #25548 for backport
  2. 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.
    e049fd76f0
  3. fanquake added this to the milestone 24.0 on Nov 1, 2022
  4. fanquake added the label Backport on Nov 1, 2022
  5. fanquake requested review from hebasto on Nov 1, 2022
  6. hebasto approved
  7. hebasto commented at 1:00 pm on November 1, 2022: member
    ACK e049fd76f0d57c1e6400fbfbaf4cc6ebe540f16f
  8. fanquake merged this on Nov 1, 2022
  9. fanquake closed this on Nov 1, 2022

  10. bitcoin locked this on Nov 1, 2023


maflcko hebasto

Labels
Backport

Milestone
24.0


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-09-29 01:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me