elftools: StringTableSection: Check table size before returning string#528
elftools: StringTableSection: Check table size before returning string#528vapier wants to merge 1 commit intoeliben:mainfrom
Conversation
Some ELF files have strings pointing to an offset outside the string table dimension, let's throw an exception in that case. Bug-Url: https://crbug.com/788925 Reviewed-on: https://chromium-review.googlesource.com/792553
|
The second assert is unnecessary - Remove the second check, it's pointless and wrong. |
|
@vapier Are you still interested in this change? |
|
Now that I look at it, should we really spend time on providing descriptive exceptions for various flavors of corrupt data? As things stand right now, pyelftools will exception on a file with a string offset leading to nowhere ( |
Some ELF files have strings pointing to an offset outside the string table dimension, let's throw an exception in that case.
Bug-Url: https://crbug.com/788925
Reviewed-on: https://chromium-review.googlesource.com/792553