Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'ta' of null crashes in various functions #351

Open
devatwork opened this issue May 21, 2021 · 3 comments
Open

Cannot read property 'ta' of null crashes in various functions #351

devatwork opened this issue May 21, 2021 · 3 comments

Comments

@devatwork
Copy link
Contributor

Found by #349

Selector: math:pow(-2.5!0, 2.0e0)
Language: XPath3.1

TypeError: Cannot read property 'ta' of null
    at Sg (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:94:62)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:93:300)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:263:551)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:985)
    at Xc.E.U (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:59:294)
    at Xc.E.jb (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:1179)
    at ok (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:164:419)
    at un.evaluate (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:247:58)
    at Array.<anonymous> (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:177:781)
    at C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:179:76
@devatwork
Copy link
Contributor Author

Same error, slightly different stack trace, probably some issue.

!!! Crash found !!!
Selector: fn:round-half-to-even(3.5678!2<+3, 2)
Language: XQueryUpdate3.1

TypeError: Cannot read property 'ta' of null
    at Sg (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:94:62)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:93:300)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:263:551)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:985)
    at Xc.E.U (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:59:294)
    at Xc.E.jb (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:1179)
    at ok (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:164:419)
    at Fn.evaluate (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:260:50)
    at Array.<anonymous> (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:177:781)
    at C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:179:76

@devatwork
Copy link
Contributor Author

Idem:

!!! Crash found !!!
Selector: array:head([["a", "b"]! ["c", "d"]])
Language: XPath3.1

TypeError: Cannot read property 'ta' of null
    at Sg (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:94:62)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:93:300)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:263:551)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:985)
    at Xc.E.U (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:59:294)
    at Xc.E.jb (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:1179)
    at ok (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:164:419)
    at C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:219:889
    at Array.map (<anonymous>)
    at Bm.evaluate (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:219:863)

@devatwork devatwork changed the title Crash in math:pow Cannot read property 'ta' of null crashes in various functions May 21, 2021
@devatwork
Copy link
Contributor Author

Idem

!!! Crash found !!!
Selector: fn:empty((1!2,3)[10])
Language: XPath3.1

TypeError: Cannot read property 'ta' of null
    at Sg (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:94:62)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:93:300)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:263:551)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:985)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:94:402)
    at Object.next (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:985)
    at Xc.E.U (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:59:294)
    at Xc.E.jb (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:58:1179)
    at ok (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:164:419)
    at fs.evaluate (C:\fontoxml\platform\fontoxpath\dist\fontoxpath.esm.js:276:50)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant