RFR 7199674: (props) user.home property does not return an accessible location in sandboxed environment [macosx]

Mike Duigou mike.duigou at oracle.com
Fri Sep 13 17:43:31 UTC 2013


On Sep 13 2013, at 10:20 , Brent Christian wrote:

>> Done, new webrev is here:
> 
> http://cr.openjdk.java.net/~bchristi/7199674/webrev.01/
> 
> 
> On 9/6/13 4:09 PM, Mike Duigou wrote:
>> 
>> I am surprised that strdup isn't needed for the constant "?" string
>> but java_props_md.c seems to include other constant strings in sprops
>> so I will assume it is just never deallocated in the lifetime of the
>> JVM.
> 
> My understanding is that C string literals go into static storage, and live for the life of the program.

My concern was mostly that nobody ever attempts to call free(sprops.user_home) which does't seem to happen.

Mike


More information about the core-libs-dev mailing list