|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/7] libxc: Use const pointer in local_file_dump()
Jennifer Herbert writes ("Re: [Xen-devel] [PATCH 2/7] libxc: Use const pointer
in local_file_dump()"):
> On 03/07/15 16:27, Ian Jackson wrote:
> > Jennifer Herbert writes ("[Xen-devel] [PATCH 2/7] libxc: Use const pointer
> > in local_file_dump()"):
> > Would it be wrong for a future patch to add a field to dump_args which
> > gets modified ? AFAICT the answer is `no'. So I don't understand why
> > it ought to be const.
...
> Coverity see da->fd being passed to local_file_dump, as a modifiable
> entity and concludes this function may be overwriting this, and end up
> leaking the handle.
Ah.
> It wouldn't be wrong to modify a new field, I just hadn't considered
> that likely. Since maybe it is, I'll just mark as false positive.
Right. I think that's probably best.
Thanks,
Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |