Bug 162449 - setsockopt decoding wrong when int!=long
Summary: setsockopt decoding wrong when int!=long
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: strace
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Roland McGrath
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks: 161578
TreeView+ depends on / blocked
 
Reported: 2005-07-04 23:24 UTC by Roland McGrath
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-07-04 23:30:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Roland McGrath 2005-07-04 23:24:29 UTC
+++ 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 23:30:09 UTC
Fixed upstream.


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