Description: Any pointer other than NULL is valid. The hack to reject pointers less than 0x8000 in an attempt to catch coding errors (an enum instead of a pointer to an enum) results in runtime errors. This leads to test suite failures and package FTBFS bugs. Use normal NULL test for pointer validity check. Author: Mattias Ellert --- a/library/pids.c +++ b/library/pids.c @@ -1042,8 +1042,7 @@ * if (procps_pids_new(&info, PIDS_noop, 3) < 0) * ^~~~~~~~~~~~~~~~ */ - if (numitems < 1 - || (void *)items < (void *)0x8000) // twice as big as our largest enum + if (numitems < 1 || items == NULL) return 1; for (i = 0; i < numitems; i++) {