RFR: JDK-8285712: LogMessageBuffer doesn't check vsnprintf return value [v3]
Johan Sjölén
duke at openjdk.java.net
Fri Apr 29 07:52:34 UTC 2022
> os::vsnprintf can return a negative value on encoding error. A negative return value will cause wraparound when cast to size_t. This in turn causes LogMessageBuffer::grow() to attempt a large memory allocation. Instead of accepting this we bail on the logging.
Johan Sjölén has updated the pull request incrementally with one additional commit since the last revision:
Print the assertion error message to the log
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/8423/files
- new: https://git.openjdk.java.net/jdk/pull/8423/files/bbe720cd..c505231a
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8423&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8423&range=01-02
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/8423.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/8423/head:pull/8423
PR: https://git.openjdk.java.net/jdk/pull/8423
More information about the hotspot-runtime-dev
mailing list