check name offset
This commit is contained in:
parent
c37193b667
commit
116a0f81f5
1 changed files with 5 additions and 1 deletions
|
@ -72,8 +72,12 @@ get_names(head)
|
|||
* area, so we don't have to be afraid to confuse "no name"
|
||||
* with "the first name".
|
||||
*/
|
||||
if (name.on_foff)
|
||||
if (name.on_foff) {
|
||||
if (name.on_foff < 0 || name.on_foff >= charoff) {
|
||||
fatal("illegal offset in name");
|
||||
}
|
||||
name.on_foff += charindex - charoff;
|
||||
}
|
||||
namerelocate(&name);
|
||||
if (name.on_type & S_EXT) {
|
||||
getexternal(&name);
|
||||
|
|
Loading…
Reference in a new issue