mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-18 01:26:23 -04:00
5e0032551b
If globhist_simple_search ran out of memory in stracpy(search_url), it could leave gh_last_searched_title pointing to freed memory and cause a crash in the next call. Fix by not freeing gh_last_searched_title. It is then possible to have gh_last_searched_title and gh_last_searched_url pointing to strings from different searches; but that was already possible if stracpy(search_title) failed. Because this bug occurs only in out-of-memory situations and I don't think ELinks in general has been properly tested in those, the fix is perhaps not worth mentioning in NEWS and backporting to elinks-0.11. |
||
---|---|---|
.. | ||
dialogs.c | ||
dialogs.h | ||
globhist.c | ||
globhist.h | ||
Makefile |