mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-11-08 23:27:15 -05:00
outbin: Fix infinite dashes written to map file
Unfortunately, there is an assumption that the section name is bounded to '65' characters and dashes have been appended so far. A simple fix for this report: https://bugzilla.nasm.us/show_bug.cgi?id=3392564 We may need to cleanup further for those hardcoded numbers in decorating the section info. Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
55f3dd5792
commit
0995aa24aa
@@ -606,6 +606,7 @@ static void bin_cleanup(void)
|
|||||||
fprintf(rf, "\n\n");
|
fprintf(rf, "\n\n");
|
||||||
list_for_each(s, sections) {
|
list_for_each(s, sections) {
|
||||||
fprintf(rf, "---- Section %s ", s->name);
|
fprintf(rf, "---- Section %s ", s->name);
|
||||||
|
if (strlen(s->name) < 65)
|
||||||
for (h = 65 - strlen(s->name); h; h--)
|
for (h = 65 - strlen(s->name); h; h--)
|
||||||
fputc('-', rf);
|
fputc('-', rf);
|
||||||
fprintf(rf, "\n\nclass: ");
|
fprintf(rf, "\n\nclass: ");
|
||||||
|
|||||||
Reference in New Issue
Block a user