mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
f19ae77520
If a filename is a multiple of 18 characters, there will be no null-terminator. This will result in an invalid access by the constructed StringRef. Add a test case to exercise this and fix that handling. Address this same vulnerability in llvm-readobj as well. llvm-svn: 206145
22 lines
531 B
YAML
22 lines
531 B
YAML
header: !Header
|
|
Machine: IMAGE_FILE_MACHINE_I386 # (0x14c)
|
|
Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ]
|
|
sections:
|
|
symbols:
|
|
- !Symbol
|
|
Name: .file
|
|
Value: 0
|
|
SectionNumber: 65534
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_FILE
|
|
File: eighteen-chars.obj
|
|
- !Symbol
|
|
Name: '@comp.id'
|
|
Value: 13485607
|
|
SectionNumber: 65535
|
|
SimpleType: IMAGE_SYM_TYPE_NULL
|
|
ComplexType: IMAGE_SYM_DTYPE_NULL
|
|
StorageClass: IMAGE_SYM_CLASS_STATIC
|
|
|