NetBSD-Bugs archive

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

bin/50741: src/usr.sbin/acpitools/acpidump/acpi.c:3 * dangerous assert ?



>Number:         50741
>Category:       bin
>Synopsis:       src/usr.sbin/acpitools/acpidump/acpi.c:3 * dangerous assert ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 01 17:00:00 +0000 2016
>Originator:     David Binderman
>Release:        cvs dated 20160131
>Organization:
>Environment:
>Description:

1.

[src/usr.sbin/acpitools/acpidump/acpi.c:1972]: (warning) Assert statement modifies 'addr'.

        assert((addr = 0));

Maybe code

        assert((addr == 0));

was intended.

2.

[src/usr.sbin/acpitools/acpidump/acpi.c:2238]: (warning) Assert statement modifies 'addr'.

Duplicate.

3.

[src/usr.sbin/acpitools/acpidump/acpi.c:2474]: (warning) Assert statement modifies 'addr'.

Another duplicate.
>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index