[OpenJDK 2D-Dev] RFR: JDK-8260432: allocateSpaceForGP in freetypeScaler.c might leak memory [v2]

Matthias Baesken mbaesken at openjdk.java.net
Wed Jan 27 13:09:56 UTC 2021


> The function  AllocateSpaceForGP in freetypeScaler.c calls potentially 2 times malloc ; however the memory is not always freed correctly in case of errors.
> See also the related  sonar issue :
> https://sonarcloud.io/project/issues?id=shipilev_jdk&languages=c&open=AXck8B_SBBG2CXpcngxr&resolved=false&severities=BLOCKER&types=BUG

Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:

  JDK-8260426

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2250/files
  - new: https://git.openjdk.java.net/jdk/pull/2250/files/5c867221..afda19e5

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2250&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2250&range=00-01

  Stats: 7 lines in 1 file changed: 2 ins; 2 del; 3 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2250.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2250/head:pull/2250

PR: https://git.openjdk.java.net/jdk/pull/2250


More information about the 2d-dev mailing list