mirror of
https://github.com/php/php-src.git
synced 2024-12-02 06:13:40 +08:00
- handled possible case that an Anchor has no Position
(This used to cause a segm fault)
This commit is contained in:
parent
a730ffdc39
commit
89279afdd3
@ -375,7 +375,7 @@ DLIST *fnCreateAnchorList(hw_objectID objID, char **anchors, char **docofanchorr
|
||||
In such a case the Position has the value 'invisible' */
|
||||
str = strstr(object, "Position");
|
||||
str += 9;
|
||||
if(0 != strncmp(str, "invisible", 9)) {
|
||||
if((str != 9) && (0 != strncmp(str, "invisible", 9))) {
|
||||
sscanf(str, "0x%X 0x%X", &start, &end);
|
||||
|
||||
/* Determine ObjectID */
|
||||
|
Loading…
Reference in New Issue
Block a user