[ELF] - Fixed possible iterator overflow.
We can have Opt.Commands size greater then Sections.size(). For example if we have next script: SECTIONS { .aaa : { *(.aaa) } .bbb : { *(.bbb) } .ccc : { *(.ccc) } } and next code: .global _start _start: nop .section .aaa,"a" .quad 0 Then amount of sections is less than amound of Opt.Commands and if we for example have all commands NoConstraint, that overflowed the iterator used. llvm-svn: 276741
Loading
Please sign in to comment