Project

General

Profile

« Previous | Next » 

Revision 21ad4075

Added by peterzhu2118 (Peter Zhu) almost 5 years ago

Don't read past the end of the Ruby string

Ruby strings don't always have a null terminator, so we can't use
it as a regular C string. By reading only the first len bytes of
the Ruby string, we won't read past the end of the Ruby string.