Updated Danish translation for the BFD library.
[deliverable/binutils-gdb.git] / binutils / rescoff.c
index 74a61a7be5d1fd0e87d31855de3c5a77dcf30fae..9151eab93fcbc2769b26fd441d82e97b7b252dcb 100644 (file)
@@ -249,7 +249,7 @@ read_coff_res_dir (windres_bfd *wrbfd, const bfd_byte *data,
       for (j = 0; j < length; j++)
        {
          /* PR 17512: file: 05dc4a16.  */
-         if (length < 0 || ers >= (bfd_byte *) ere || ers + j * 2 + 4 >= (bfd_byte *) ere)
+         if (length < 0 || ers >= flaginfo->data_end || ers + j * 2 + 4 >= flaginfo->data_end)
            overrun (flaginfo, _("resource name"));
          re->id.u.n.name[j] = windres_get_16 (wrbfd, ers + j * 2 + 2, 2);
        }
This page took 0.038773 seconds and 4 git commands to generate.