1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

[JS] Use heap allocation when initializing quickjs sandbox (#13286)

- In case of large string the sandbox initialization failed because of an OOM
    * so allocate a new string in the heap
    * and free it after use.
  - it requires a quickjs update since we need to export some symbols (stringToNewUTF8 and free).
This commit is contained in:
calixteman 2021-04-23 12:04:14 +02:00 committed by GitHub
parent 57a1ea840f
commit 762cfd2d1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 23 deletions

File diff suppressed because one or more lines are too long