NetBSD-Bugs archive

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

lib/53505: multiple-evaluation issues in bitstring(3)

>Number:         53505
>Category:       lib
>Synopsis:       multiple-evaluation issues in bitstring(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 07 00:00:00 +0000 2018
>Originator:     Paul Goyette
>Release:        NetBSD 8.99.22
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
System: NetBSD 8.99.22 NetBSD 8.99.22 (SPEEDY 2018-07-25 07:42:52 UTC) #0: Wed Jul 25 13:38:00 UTC 2018 amd64
Architecture: x86_64
Machine: amd64
The operations described in bitstring(3) and implemented as macros in
/usr/include/bitstring.h suffer from possible problems with multiple
evaluations of the macro arguments, particularly if the bit number
argument includes a ++ or -- !
Inspect the code.
It was suggested on tech-userlevel@ to replace susceptible macros with
static inline functions, similarly to what is done in sys/event.h for


Home | Main Index | Thread Index | Old Index