PR binutils/21150
* nm.c (file_symbol): Add test of string length before testing
string characters.
+2017-02-13 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21150
+ * nm.c (file_symbol): Add test of string length before testing
+ string characters.
+
2017-02-13 Nick Clifton <nickc@redhat.com>
PR binutils/21135
#define file_symbol(s, sn, snl) \
(((s)->flags & BSF_FILE) != 0 \
- || ((sn)[(snl) - 2] == '.' \
+ || ((snl) > 2 \
+ && (sn)[(snl) - 2] == '.' \
&& ((sn)[(snl) - 1] == 'o' \
|| (sn)[(snl) - 1] == 'a')))