2 ms·
His point is that you're not forced to do that. And anyhow, that doesn't solve the issue since you can bungle the creation of the slice with the wrong offset or
by marcoperaza 10y ago
His point is that you're not forced to do that. And anyhow, that doesn't solve the issue since you can bungle the creation of the slice with the wrong offset or length.
- Manishearth 10y agoI wasn't refuting their point. I was just pointing this out. However, you can't bungle the creation of a slice in rust without using explicitly marked unsafe code.
- marcoperaza 10y agoNot bungle in the sense of overflowing the underlying buffer, but overflowing the logical buffer that is contained within it, i.e. getting the wrong slice.
- Manishearth 10y agoOh, sure. Like I said, I wasn't refuting their point.