GNU GRUB - Bugs: bug #57829, Memory leaks in the script parser
You are not allowed to post comments on this tracker with your current authentication level.
bug #57829: Memory leaks in the script parser
Submitter: | felix <felix_s> | ||
Submitted: | Sun 16 Feb 2020 05:38:48 PM UTC | ||
Category: | None | Severity: | Major |
Priority: | 5 - Normal | Item Group: | Software Error |
Status: | None | Privacy: | Public |
Assigned to: | None | Originator Name: | |
Open/Closed: | Open | Release: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | None |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
No changes have been made to this item
Powered by Savane 3.13-f8d8.
Corresponding source code
Discovered by LeakSanitizer:
(Some kludges were necessary so that grub-emu-lite and modules successfully compile with ASan, but that isn’t terribly relevant here.)
Sample session:
Other successfully parsing samples that cause memory leaks:
I’m not quite sure where the problem lies, but it seems crucial that the compound statement have multiple lines for leaks to occur.
Scripts that fail to parse also generate memory leaks, for example:
(the latter two also generate an ‘out of memory’ message for some reason)