Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
dev:underflow [2017/05/17 19:00] – created devadev:underflow [2017/05/17 19:01] deva
Line 1: Line 1:
 +All the below calls to ''resize()'' use subtraction in the size calculation and might underflow because of the size being an unsigned int.
 +
 +To each, add a check to make sure that subtraction doesn't result in a negative value.
 +
 <code> <code>
 abouttab.cc:            text_edit.resize(width() - 2*margin, height() - 2*margin); abouttab.cc:            text_edit.resize(width() - 2*margin, height() - 2*margin);
dev/underflow.txt · Last modified: 2017/05/17 19:03 by deva
Trace:
GNU Free Documentation License 1.3
Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0