Re: ubsan: signed integer overflow in atof_generic
authorAlan Modra <amodra@gmail.com>
Thu, 2 Jun 2022 09:12:01 +0000 (18:42 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 2 Jun 2022 09:12:01 +0000 (18:42 +0930)
Oops.

* atof-generic.c: Include limits.h.

gas/atof-generic.c

index 9158319486810988b0ea8ffd6bd8a294ea132b53..1aee4fa80292d0499d66709eda2b33d588edf318 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "as.h"
 #include "safe-ctype.h"
+#include <limits.h>
 
 #ifdef TRACE
 static void flonum_print (const FLONUM_TYPE *);