[BUG] Radix Integer Formatter Incorrectly Uses Uninitialized Memory #126
Labels
A-sec
Issues with potential security implications.
bug
Something isn't working
high priority
High priority
Description
When using
MaybeUninit::uninit
, the radix writer converts this then to a&mut [u8]
, which is fine as long as the memory is read, however, all assignments are done via read/writes and not pointer writes. Since these formatters require copying to a temporary buffer anyway, it's very unlikely the use of a zero-initialized vs. a maybe unitialized buffer will cause major performance enhancements.rust-lexical/lexical-write-integer/src/radix.rs
Line 65 in 6851835
rust-lexical/lexical-write-integer/src/algorithm.rs
Line 32 in 6851835
The text was updated successfully, but these errors were encountered: