Bug 162449 - setsockopt decoding wrong when int!=long
setsockopt decoding wrong when int!=long
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: strace (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
:
Depends On:
Blocks: 161578
  Show dependency treegraph
 
Reported: 2005-07-04 19:24 EDT by Roland McGrath
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-07-04 19:30:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Roland McGrath 2005-07-04 19:24:29 EDT
+++ This bug was initially created as a clone of Bug #161578 +++

Description of problem:

1. the numerical parameter pointed to by the fourth parameter is handled as a
long, not int.  This leads to incorrect output on 64bit archs


Version-Release number of selected component (if applicable):
4.5.12-1

How reproducible:
always

Steps to Reproduce:
1.run code using setsockopt on 64bit platform
2.
3.
  
Actual results:
setsockopt(3, SOL_IP, IP_RECRECVTTL, [4294967297], 4) = 0


Expected results:
setsockopt(3, SOL_IP, IP_RECVTTL, [1], 4) = 0


Additional info:
I'll attach two patches.
Comment 1 Roland McGrath 2005-07-04 19:30:09 EDT
Fixed upstream.

Note You need to log in before you can comment on or make changes to this bug.