NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/39733: Sizeof(pointer) bug in usr.bin/xlint/lint1/scan.l .
>Number: 39733
>Category: bin
>Synopsis: Sizeof(pointer) bug in usr.bin/xlint/lint1/scan.l .
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 12 12:20:01 +0000 2008
>Originator: Henning Petersen
>Release: Netbsd-current
>Organization:
>Environment:
>Description:
Correct sizeof(pointer) bug that should have been sizeof(*pointer).
>How-To-Repeat:
>Fix:
diff -u -r1.40 scan.l
--- usr.bin/xlint/lint1/scan.l 26 Sep 2008 22:52:24 -0000 1.40
+++ usr.bin/xlint/lint1/scan.l 12 Oct 2008 10:30:58 -0000
@@ -324,7 +324,7 @@
} else {
sb = xmalloc(sizeof (sbuf_t));
}
- (void)memset(sb, 0, sizeof (sb));
+ (void)memset(sb, 0, sizeof (*sb));
return (sb);
Home |
Main Index |
Thread Index |
Old Index