[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 cross-referenced this on Nov 1, 2022 from issue gui: Check for readlink buffer overflow and handle gracefully by luke-jr
  4. fanquake added this to the milestone 24.0 on Nov 1, 2022
  5. fanquake added the label Backport on Nov 1, 2022
  6. fanquake requested review from hebasto on Nov 1, 2022
  7. hebasto approved
  8. hebasto commented at 1:00 PM on November 1, 2022: member

    ACK e049fd76f0d57c1e6400fbfbaf4cc6ebe540f16f

  9. fanquake merged this on Nov 1, 2022
  10. fanquake closed this on Nov 1, 2022

  11. bitcoin locked this on Nov 1, 2023

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: 2026-05-20 06:53 UTC