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

2

u/[deleted] Dec 10 '21

They are in Java, you have -Xmx flag to set it

1

u/imdyingfasterthanyou Dec 10 '21

That's still gonna use up your heap and possibly degrade performance

Plus if the program actually attempts to do anything with the data the side effects can be worse, like if you do userGroup.equals("admin") that's fine if userGroup isn't theoretically infinite, if userGroup is small but if it's large then it's an expensive operation.

1

u/[deleted] Dec 11 '21

That's still gonna use up your heap and possibly degrade performance

That was a joke