>>>>> "Chen" == Chen Gang <gang.chen.5...@gmail.com> writes:

Chen> 'errbuf' assumes itself will be zero terminated, and it also assumes
Chen> cpnative_getErrorString() may get larger length string than 'errbuf'.
Chen> So after strncpy(), 'errbuf' may not be zero terminated.

Chen> strncpy() is sure of zero pad, but not be sure of zero terminated.

It seems reasonable but Classpath patches should go upstream, to the
Classpath project.

Tom

Reply via email to