pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/60257: devel/py-numpy: ctype(3) abuse
>Number: 60257
>Category: pkg
>Synopsis: devel/py-numpy: ctype(3) abuse
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 13 02:00:00 +0000 2026
>Originator: Taylor R Campbell
>Release: pkgsrc-current, math/py-numpy 2.4.4
>Organization:
The NumpyBSDumpty Array Subscription
>Environment:
>Description:
[254/461] Compiling C object numpy/_core/_rational_tests.so.p/src_umath__rational_tests.c.o
In file included from /usr/include/ctype.h:97,
from /home/riastradh/pkgsrc/current/work/math/py-numpy/work/.bu
ildlink/include/python3.11/unicodeobject.h:58, from /home/riastradh/pkgsrc/current/work/math/py-numpy/work/.buildlink/include/python3.11/Python.h:51,
from ../numpy/_core/src/umath/_rational_tests.c:3:
../numpy/_core/src/umath/_rational_tests.c: In function 'pyrational_new':
../numpy/_core/src/umath/_rational_tests.c:416:34: warning: array subscript has type 'char' [-Wchar-subscripts]
416 | if (!isspace(*p)) {
| ^
>How-To-Repeat:
build math/py-numpy
>Fix:
1. convert char to unsigned char first
2. check for other abuse in the vicinity
Home |
Main Index |
Thread Index |
Old Index