Description
org.apache.logging.log4j.core.filter.BurstFilter.LogDelay#compareTo is implemented with mistake - it does not account for numerical overflow (negative values). I.e. System.nanoTime() JavaDocs say:
To compare two nanoTime values
long t0 = System.nanoTime();
...
long t1 = System.nanoTime();
one should use t1 - t0 < 0, not t1 < t0, because of the possibility of numerical overflow.
but the mentioned method compares values directly.