diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-12 21:19:46 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-06-12 21:25:35 +0200 |
commit | 5db6c990b93262ab78879bc7c8221a97eb8626cd (patch) | |
tree | 59f659b04ae94ae346b8f98f0f680bd8cd198588 /.github/workflows | |
parent | fd120fb9b09ddd584ff9bf41e9ca0d29c99dd7a0 (diff) |
Fix segfault in Done button of downloads
The destructor was using a harcoded index to the elements to free from
the original array of arguments used to call the wget program. When the
user agent was introduced, the index of the elements that require free()
shifted, causing the free() call to operate on the constant string of
the user agent instead.
Rather than relying on the hardcoded index, two new pointers hold the
values of the strings that need to be free()'d in the destructor.
Further additions in the argument array won't cause more problems.
Reported-by: pastebin <pastebin@gmx.com>
Fixes: https://github.com/dillo-browser/dillo/issues/196
See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/IPWQYKTYTO5G2BH3UU5224FRUFWCVGSO/
Diffstat (limited to '.github/workflows')
0 files changed, 0 insertions, 0 deletions