News for hackers. Stuff that matters.
Re:Did Claude Increase Bugs in Rsync? by jagged-chisel on Friday June 05, 2026 @10:11PM (#48420719)
My point is that the developer's comment doesn't make sense. Zeroing the allocated memory doesn't change anything about overrunning the buffer.

edit: removed unnecessary examples

Re:Did Claude Increase Bugs in Rsync? by davrosthedalek on Friday June 05, 2026 @10:24PM (#48420806)
Haven't looked at the code, but the allocated memory could be larger than necessary to make "off-by-one" or "off-by-a-few" errors less deadly. Then zeroing it out makes it even less so. Defense in depth.

Or it's an allocation for an arena? The zeroing might help trigger 0 derefs earlier if the overrun happens for the object that are then allocated in the arena (and not by allocating more objects than the arena can provide)

Re:Did Claude Increase Bugs in Rsync? by Shish2k on Sunday June 07, 2026 @08:32AM (#48434189)
This doesn't prevent overrunning the buffer -- it means that when you do overrun the buffer, it does less damage