misk@piefed.social to Linux@programming.devEnglish · 1 day agoSeveral Linux Kernel Vulnerabilities Accidentally Posted To Public Kernel Mailing Listwww.phoronix.comexternal-linkmessage-square21fedilinkarrow-up187arrow-down10
arrow-up187arrow-down1external-linkSeveral Linux Kernel Vulnerabilities Accidentally Posted To Public Kernel Mailing Listwww.phoronix.commisk@piefed.social to Linux@programming.devEnglish · 1 day agomessage-square21fedilink
minus-squareLaggyKar@programming.devlinkfedilinkarrow-up4·2 hours ago RCE from integer overflow (not possible by default in Rust It is possible. Rust will check for overflow and panic in debug builds, but will silently wrap integers in release builds.
minus-squareTheTechnician27@lemmy.worldlinkfedilinkEnglisharrow-up1·edit-242 minutes agoYeah, you’re right. I was thinking of a combination of Rust’s debug mode, the fact it won’t compile if it detects a static under/overflow, and Swift’s default producing a runtime error on integer under/overflow. Corrected; I apologize.
It is possible. Rust will check for overflow and panic in debug builds, but will silently wrap integers in release builds.
Yeah, you’re right. I was thinking of a combination of Rust’s debug mode, the fact it won’t compile if it detects a static under/overflow, and Swift’s default producing a runtime error on integer under/overflow. Corrected; I apologize.