Commit graph

9 commits

Author SHA1 Message Date
Vladimir Vukicevic
5c7d2d14d7 [fix] Avoid int overflow when allocating large buffers
This patch introduces three macros: _cairo_malloc_ab,
_cairo_malloc_abc, _cairo_malloc_ab_plus_c and replaces various calls
to malloc(a*b), malloc(a*b*c), and malloc(a*b+c) with them.  The macros
return NULL if int overflow would occur during the allocation.  See
CODING_STYLE for more information.
2007-06-29 09:46:08 -07:00
Carl Worth
5570bf0a9e CODING_STYLE: Fix misspellings. 2006-06-06 16:36:24 -07:00
Carl Worth
a21a2e935d CODING_STYLE: Add notes on avoiding trailing whitespace. 2006-06-06 16:28:15 -07:00
Christian Biesinger
6ba7772138 Globally rename "operator" to "op", to allow writing backends in C++
reviewed by: cworth
2005-12-16 03:02:35 +00:00
Carl Worth
c11f0376d4 Revise the description of indentation and tabs to be clear (I hope). 2005-08-23 12:48:17 +00:00
Carl Worth
9fd2f0a25c Add a missing word.
Note that the BadMatch bug has been resolved.
2005-07-07 01:15:21 +00:00
Carl Worth
97ac61700a Fix spelling errors. 2005-06-03 15:56:52 +00:00
Carl Worth
5699072035 Fix Freudian unwrapped line in paragraph describing why long lines should be wrapped. 2005-06-03 15:54:40 +00:00
Carl Worth
36beed9bf1 Add CODING_STYLE document to standardize on some style issues.
Standardize brace handling around all else clauses according to new CODING_STYLE guidelines.
2005-06-03 14:51:57 +00:00