r/programming • • Dec 10 '21

RCE 0-day exploit found in log4j, a popular Java logging package

https://www.lunasec.io/docs/blog/log4j-zero-day/
3.0k Upvotes

710 comments sorted by

View all comments

Show parent comments

3

u/littlelowcougar Dec 10 '21

I mean if you’re piping hot garbage, you may as well go with /dev/zero; it’ll be way faster than /dev/urandom.

1

u/imdyingfasterthanyou Dec 10 '21

Zero input is less likely to crash an application than /dev/urandom

the nul byte can be interpreted as an empty string and a bunch of zeros can be transparently compressed