#32720 [NEW]: Wrong type in snmp.c
| From: | joropito at ciudad dot com dot ar | Date: | Fri, 15 Apr 2005 14:25:41 +0000 |
| Subject: | #32720 [NEW]: Wrong type in snmp.c | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-77602@lists.php.net to get a copy of this message | ||
From: joropito at ciudad dot com dot ar
Operating system: FreeBSD 5.3 SPARC64
PHP version: 5.0.4
PHP Bug Type: SNMP related
Bug description: Wrong type in snmp.c
Description:
------------
In php_snmp_internal() (snmp.c) its defined
int name_length; // length 4
int rootlen = 0; // length 4
but to be architecture portable it needs to be
size_t name_length; // length 8 on sparc64
size_t rootlen = 0; //length 8 on sparc64
like ucd/net-snmp defines at snmp_parse_oid()
--
Edit bug report at http://bugs.php.net/?id=32720&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32720&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32720&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32720&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32720&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32720&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32720&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32720&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32720&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32720&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32720&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32720&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32720&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32720&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32720&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32720&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32720&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32720&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32720&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32720&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32720&r=mysqlcfg