Bug 6425 - Init pointers as null before using
Summary: Init pointers as null before using
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: VFS Modules (show other bugs)
Version: unspecified
Hardware: All HP-UX
: P3 normal
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-01 01:48 UTC by Zhou Weikuan
Modified: 2009-06-01 02:48 UTC (History)
1 user (show)

See Also:


Attachments
the diff file for vfs (1.08 KB, patch)
2009-06-01 01:51 UTC, Zhou Weikuan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Zhou Weikuan 2009-06-01 01:48:59 UTC
initialized pointer before using it, so that SAFE_FREE() won't free an uninitialized pointer.
Comment 1 Zhou Weikuan 2009-06-01 01:51:20 UTC
Created attachment 4225 [details]
the diff file for vfs

If you accept this patch and want a personnal copyright, please use 
Copyright (C) David Daugherty 2009

Thanks,
Comment 2 Zhou Weikuan 2009-06-01 02:48:40 UTC
Sorry, this bug should not be created:
1) this bug seems fixed a year ago, though there are some other pointers should be set as null 
2) the attached diff file is not that exact.
so mark this bug as INVALID.

The fix one year ago:
commit 9e3634fb63f6dec1a3c820a462b5f732e7d09206
Author: Volker Lendecke <vl@samba.org>
Date:   Thu Jan 17 17:17:52 2008 +0100

    Fix two uninitialized variables in vfs_hpuxacl.c

    Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

    Volker
    (This used to be commit a3b36c3cb0fe5f3e78c200290afa59829934f496)