[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Potential NULL pointer passed to strlen()

From: Sergey Poznyakoff
Subject: Re: [Bug-tar] Potential NULL pointer passed to strlen()
Date: Sat, 29 Oct 2011 17:20:04 +0300

Xu Zhongxing <address@hidden> ha escrit:

>    remote_file is initialized to 0. It's not guaranteed to be assigned a
>    new pointer,

No, it is guaranteed to have a not-null value by the time it is
referenced.  This function is called only if archive name contains
a ':' (see rmtcreat).  This means that case ':' in rtapelib.c:418
will always be executed and will assign a non-null value to
remote_file, unless it has already been assigned one.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]