GNOME Bugzilla – Bug 778601
pangofc-shape: Fix potential array overrun
Last modified: 2017-02-14 12:27:40 UTC
Small fix for a potential out-of-bounds access found by Coverity, which could happen if a particular run of text had a lot of features.
Created attachment 345721 [details] [review] pangofc-shape: Fix potential array overrun If this loop adds the final feature to the features array, the start and end assignment for the next feature will drop off the end of the array. I don’t think the assignments are necessary, since num_features stores the number of elements in the array (so it doesn’t need to be terminated), and the start and end elements are assigned each time a feature is parsed. Coverity ID: 1391709 Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 345721 [details] [review]: You are right.
Attachment 345721 [details] pushed as 318fd54 - pangofc-shape: Fix potential array overrun