PR binutils/21148
* readelf.c (process_version_sections): Include size of auxillary
version information when checking for buffer overflow.
+2017-02-13 Nick Clifton <nickc@redhat.com>
+
+ PR binutils/21148
+ * readelf.c (process_version_sections): Include size of auxillary
+ version information when checking for buffer overflow.
+
2017-02-13 Nick Clifton <nickc@redhat.com>
PR binutils/21147
ent.vd_ndx, ent.vd_cnt);
/* Check for overflow. */
- if (ent.vd_aux > (size_t) (endbuf - vstart))
+ if (ent.vd_aux + sizeof (* eaux) > (size_t) (endbuf - vstart))
break;
vstart += ent.vd_aux;