LearnBoost/node-canvas — pull request #148 by obarthel (2012-01-31 09:33:39+00:00)
Title: Small fixes for stability, incomplete data and memory allocation failure/cleanup

This is a list of fixes I added to 0.6.0 and beyond last year. The named color table was incomplete and some of the color names had blank spaces in them. I added buffer bounds checking where it was absent, updated the GC hints which in places miscalculated the buffer sizes and fixed the handling of memory allocation failure and cleanup in several places.

There is still work to be done, as the JPEG streaming write code does not handle memory allocation failure, and the state table save/restore functions, and the functions which depend upon the state table, cannot handle memory allocation failure gracefully.