Summary: | Out of bound access in struct pattern -> type | ||
---|---|---|---|
Product: | cairo | Reporter: | Ashim <ashim.shah> |
Component: | general | Assignee: | Ashim <ashim.shah> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ashim
2015-07-08 11:15:09 UTC
Thanks, applied. commit 498fc2fbe31682754f1aa3864b764229d0b6838c Author: Ashim <ashim.shah@samsung.com> Date: Thu Jul 9 10:43:30 2015 +0530 Fix out of bound access in struct pattern->type The pattern structure is hardcoded to hold 7 elements, yet the pattern_names array in cairo-surface-observer.c is initialized with 8 strings. This causes a crash in print_array at line 1587 when it tries to access the 8th member. Hence changed the 'type' array from type[7] to type[8] to avoid out of bound access. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91266 Signed-off-by: Ashim <ashim.shah@samsung.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.