diff options
author | Tavis Ormandy <taviso@gmail.com> | 2024-08-08 15:09:59 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2024-08-08 13:26:45 -1000 |
commit | efd55c763699a3e38fc4a5ba72e114b8b0781b66 (patch) | |
tree | 4d1830c03070482b58bbd3a670afa437a7979ccc /shell.nix | |
parent | 771890169d9f2263ad07ddabd592a7acb794f4ef (diff) | |
download | fork-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 'shell.nix')
0 files changed, 0 insertions, 0 deletions