On Fri, 11 Nov 2022 22:41:19 GMT, Xue-Lei Andrew Fan <xue...@openjdk.org> wrote:
> Hi, > > May I have this update reviewed? > > The sprintf is deprecated in Xcode 14 because of security concerns, and the > use of it causing building failure. The build could pass if warnings are > disabled for codes that use sprintf method. For the long run, the sprintf > could be replaced with snprintf. This patch is trying to check if snprintf > could be used. > > Thanks, > Xuelei Hi @XueleiFan, could you use `jio_snprintf` instead (see include/jvm_io.h)? That is what we usually do for snprintf. jio_snprintf hides platform particularities wrt snprintf. Cheers, Thomas ------------- PR: https://git.openjdk.org/jdk/pull/11115