mcavage/node-asn1 — pull request #6 by husio-org (2013-08-13 13:40:18+00:00)
Title: WRITER: ensure that no value greater than 0xFF is written to a buffer position.

NodeJS seems to automatically truncate values when writing to a buffer, mainly because NodeJS relies on native buffers.

However, when using this module in the browser (via browserify, or any other portability tool), the buffer is implemented in javascript which will accept values > 0xFF leading to malformed outputs of the writer.

The unit tests pass with this patch included.