cloudhead/node-static — pull request #111 by igorii (2013-11-06 20:22:08+00:00)
Title: Adding bounds checking to buffer copy in Server.stream (fix for #85)

After getting the same mysterious error as reported in https://github.com/cloudhead/node-static/issues/85, I found the error to be originating from Server.stream. I've added bounds checking to the copy of the incoming chunk to the buffer to avoid crashing the server if a chunk comes in empty.