Review Request for JDK-8003992: File and other classes in do not handle embedded nulls properly

Alan Bateman Alan.Bateman at
Wed Feb 27 12:15:06 UTC 2013

On 27/02/2013 12:07, Peter Levart wrote:
> What does a FileInputStream for example do when trying to open a File 
> with embedded NUL chars on UNIX/Windows ? Does it try to open a 
> "truncated" path? If so, then perhaps "normalize" could do that 
> beforehand...
Yes, it's truncated. Dan's fix covers FileInputStream and friends too as 
they go through the normalize code.


More information about the core-libs-dev mailing list