> 3.Code which indirectly calls StringEntry::alloc may exhibit off-by-one error.

I think that code should be fixed, not here.