-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
FontDescription.LoadDescription throws ArgumentException #96
Comments
The full exception is:
Okay if I add a patch that does |
no real problem, not sure its a valid font file with duplicate tables but preventing it breaking with an unhelpful error is better |
Not a valid font - it was obtained by fuzzing the library. The fuzzer started with a small valid font and generated thousands of random mutations before generating this particular one. |
@tocsoft What would you prefer that we do if we find a duplicate table? Don't understand your answer 😉 |
Just replace the previous entry for now like you suggested. We can worry about correctness later as I can't currently find anything saying it's invalid to have duplicate tables defined. |
FontDescription.LoadDescription throws an ArgumentException when loading the font from the attached archive. You can run the following code to reproduce it (the path variable should contain the path to the extracted file):
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: