Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
net-snmp
> net-snmp-5.2.1-overflow.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File net-snmp-5.2.1-overflow.diff of Package net-snmp (Revision 2)
Currently displaying revision
2
,
show latest
--- snmplib/mib.c.xx 2005-02-02 21:14:34.167265497 +0100 +++ snmplib/mib.c 2005-02-02 21:15:40.937887906 +0100 @@ -1521,7 +1521,7 @@ return 0; } } else { - sprintf(tmp, "%lu", *var->val.integer); + sprintf(tmp, "%u", (unsigned int)(*var->val.integer & 0xffffffff)); if (!snmp_strcat (buf, buf_len, out_len, allow_realloc, (const u_char *) tmp)) { return 0; @@ -1585,7 +1585,7 @@ return 0; } } - sprintf(tmp, "%lu", *var->val.integer); + sprintf(tmp, "%u", (unsigned int)(*var->val.integer & 0xffffffff)); if (!snmp_strcat (buf, buf_len, out_len, allow_realloc, (const u_char *) tmp)) { return 0;