On Sun, 31 Mar 2024 23:03:18 +0300, Eugene Uriev wrote: > There was no "mcheck" for U-Boot before. > > Since U-Boot has only 1 thread, and normally makes 4000+ - 6000+ > mallocs, it's better to use havier canaries to protect heap-chunks. > My variant uses 2x8 = 16byte-long protector. And > the multiplier could be changed to tune speed/protection tradeoff. > This protects not only against memset()-s, but against "near" wild > pointers too, and makes more probable to catch "distant" ones. > > [...]
Applied to u-boot/master, thanks! -- Tom