Closed kevinyang372 closed 2 years ago
@bors-servo r+ Thank you!
:pushpin: Commit aa33343 has been approved by jdm
:hourglass: Testing commit aa3334309e900c12a585c31d903129589ed8a793 with merge 589e6265fbf3677246d5abc62ab3da8a6314165c...
:sunny: Test successful - checks-github Approved by: jdm Pushing 589e6265fbf3677246d5abc62ab3da8a6314165c to master...
Thank you guys for making this awesome library!
I noticed that there are a couple of places in the library where corrupted / non-standard font header file could cause panicking rather than returning a parsing error. These panics are mainly caused by out of bounds errors when slicing with wrong indices. Thus, I added some bound safety checks to return a proper parsing error when these scenarios happen. This PR does not change anything functionality-wise.