Prevent assertions outside sections from crashing

This commit is contained in:
ISSOtm
2020-03-29 12:18:24 +02:00
parent db1eb8fbcb
commit a3d8836671
8 changed files with 25 additions and 9 deletions

View File

@@ -22,6 +22,11 @@ struct Assertion {
// enum AssertionType type; The `patch`'s field is instead re-used
struct Section *section;
char *message;
/*
* This would be redundant with `.section->fileSymbols`... but
* `section` is sometimes NULL!
*/
struct Symbol ** fileSymbols;
struct Assertion *next;
};