GNOME Bugzilla – Bug 778602
Add assertions to guard against division by zero on sample text paths
Last modified: 2017-02-14 12:27:53 UTC
Trivial patch attached.
Created attachment 345722 [details] [review] Add assertions to guard against division by zero on sample text paths There are a few code paths where pango_utf8_strwidth() is called on language-specific sample text. The sample text should have been chosen to never have a zero width, but we should add some assertions to ensure that’s the case. This guides static analysers into the right analysis. Coverity IDs: 1391697, 1391698, 1391699 Signed-off-by: Philip Withnall <withnall@endlessm.com>
Review of attachment 345722 [details] [review]: hmm, ok
Attachment 345722 [details] pushed as e4ea2d2 - Add assertions to guard against division by zero on sample text paths