From 0995aa24aa7999a98f54c66ad989b47ce9a41e78 Mon Sep 17 00:00:00 2001 From: "Chang S. Bae" Date: Fri, 26 Apr 2019 23:15:36 -0700 Subject: 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 --- output/outbin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'output') diff --git a/output/outbin.c b/output/outbin.c index 9983cd33..95885b26 100644 --- a/output/outbin.c +++ b/output/outbin.c @@ -606,6 +606,7 @@ static void bin_cleanup(void) fprintf(rf, "\n\n"); list_for_each(s, sections) { fprintf(rf, "---- Section %s ", s->name); + if (strlen(s->name) < 65) for (h = 65 - strlen(s->name); h; h--) fputc('-', rf); fprintf(rf, "\n\nclass: "); -- cgit v1.2.1