News for hackers. Stuff that matters.
Re:Thoughts on Rust, a few thousand lines in by kd5bjo on Thursday January 10, 2019 @02:39AM (#18872202)
Truncating a string to fit in a fixed-size storage field is probably the most common reason to split at a particular byte position. If you’re throwing data away anyway, you probably don’t care too much about the little bit of corruption.

Granted, this is certainly incorrect but has little to do with safety, especially if the downstream code has to revalidate everything anyway.

There are no comments on this comment yet.