Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upinteger overflow in /dom/html/reflection-embedded.html #11175
Labels
Comments
|
The spec seems to allow a range up to 2^32-1. This means our conversion to Au will overflow anything that needs 26 or more bits. One fix is to clamp things like image width/height to (2^32-1) / 60 or to make Au an i64 instead of an i32. I'm not sure what the correct behavior is here. Gecko's ns_coord is i32, but they seem to not track units explicitly, and I didn't find any clear examples of |
|
Maybe we should store this in CSS units too; can we ever get fractional data here? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was originally found in #10544. The stack trace is:
This appears to be caused by clamping to
UNSIGNED_LONG_MAXbut then multiplying by 60 inAu::from_px.