Commit 488d7c7
H. Peter Anvin
preproc: fix memory leak in %[...] processing
"Why dup_tlist() here? We should own it."
Yes, we own it, but we still need to advance the tail pointer. Create
steal_tlist() for this purpose.
Fixes: https://bugzilla.nasm.us/show_bug.cgi?id=3392774
Reported-and-Debugged-by: C. Masloch <pushbx@ulukai.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>1 parent ae0d289 commit 488d7c7
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
962 | 962 | | |
963 | 963 | | |
964 | 964 | | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
965 | 980 | | |
966 | 981 | | |
967 | 982 | | |
| |||
5517 | 5532 | | |
5518 | 5533 | | |
5519 | 5534 | | |
5520 | | - | |
5521 | | - | |
| 5535 | + | |
5522 | 5536 | | |
5523 | 5537 | | |
5524 | 5538 | | |
| |||
0 commit comments