[jdk8u-dev] RFR: 8069389: CompilerOracle prefix wildcarding is broken for long strings
    Roman Marchenko 
    rmarchenko at openjdk.org
       
    Fri Feb 16 18:38:06 UTC 2024
    
    
  
Clean backport.
I've just found that the issue occurs even with short strings like "*123*", see my screenshot attached to JDK-8069389. This can be reproduced currently with "slowdebug" build on my Ubuntu 22.04 + gcc-9.5.0, however I believe we cannot rely on it isn't reproduced with "release" now.
Anyway, it wasn't good to use "strcpy" with overlapped buffers, because strcpy's docs says "The behavior is undefined if the strings overlap." So, I believe it should be fixed in jdk8 as well.
-------------
Commit messages:
 - Backport 01ec6950020268a375eb5330373e6c0813f3a924
Changes: https://git.openjdk.org/jdk8u-dev/pull/446/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=446&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8069389
  Stats: 80 lines in 2 files changed: 79 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/446.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/446/head:pull/446
PR: https://git.openjdk.org/jdk8u-dev/pull/446
    
    
More information about the jdk8u-dev
mailing list