| ... | ... | @@ -4055,14 +4055,14 @@ fn loadObject( |
| 4055 | 4055 | section.name = coff.getOrPutStringAssumeCapacity(section_name_slice); |
| 4056 | 4056 | |
| 4057 | 4057 | if (section.header.pointer_to_linenumbers + |
| 4058 | | section.header.number_of_linenumbers * std.coff.LineNumber.sizeOf() > fl.size) |
| 4058 | @as(u32, section.header.number_of_linenumbers) * std.coff.LineNumber.sizeOf() > fl.size) |
| 4059 | 4059 | return diags.failParse(path, "bad line numbers location in section {d} `{s}`", .{ |
| 4060 | 4060 | section_i, |
| 4061 | 4061 | section_name_slice, |
| 4062 | 4062 | }); |
| 4063 | 4063 | |
| 4064 | 4064 | if (section.header.pointer_to_relocations + |
| 4065 | | section.header.number_of_relocations * std.coff.Relocation.sizeOf() > fl.size) |
| 4065 | @as(u32, section.header.number_of_relocations) * std.coff.Relocation.sizeOf() > fl.size) |
| 4066 | 4066 | return diags.failParse(path, "bad relocations location in section {d} `{s}`", .{ |
| 4067 | 4067 | section_i, |
| 4068 | 4068 | section_name_slice, |