summaryrefslogtreecommitdiff
path: root/src/wcwidth.cc
diff options
context:
space:
mode:
authorTavis Ormandy <taviso@gmail.com>2024-08-08 15:09:59 -0700
committerJohn Wiegley <johnw@newartisans.com>2024-08-08 13:26:45 -1000
commitefd55c763699a3e38fc4a5ba72e114b8b0781b66 (patch)
tree4d1830c03070482b58bbd3a670afa437a7979ccc /src/wcwidth.cc
parent771890169d9f2263ad07ddabd592a7acb794f4ef (diff)
downloadfork-ledger-efd55c763699a3e38fc4a5ba72e114b8b0781b66.tar.gz
fork-ledger-efd55c763699a3e38fc4a5ba72e114b8b0781b66.tar.bz2
fork-ledger-efd55c763699a3e38fc4a5ba72e114b8b0781b66.zip
fix use-after-free with regex_match()
The smatch does not copy the input, it points to the original. So if the string is on the stack and goes out of scope because it's only used as a parameter, it will just be junk. Make a copy of it at a higher scope.
Diffstat (limited to 'src/wcwidth.cc')
0 files changed, 0 insertions, 0 deletions