Files
spring-boot/loader/spring-boot-loader
Ian Kettle b103aaa1f6 Fix inflater cache race in NestedJarFileResources
Update `NestedJarFileResources` to fix a race condition that could
result in a `NullPointerException`.

The methods `getOrCreateInflater` and `endOrCacheInflater` both
synchronize on a local `inflaterCache` variable but attempted to use the
`this.inflaterCache` instance which could be set to null.

The `releaseInflators` method had a synchronized block for ending each
inflater but the cache was being nulled out outside the block meaning that
the other 2 methods mentioned could hit the race condition.

Signed-off-by: Ian Kettle <25729118+icikle@users.noreply.github.com>

See gh-51744
2026-09-14 17:34:45 -07:00
..
2026-05-14 15:02:24 +01:00