Bug 125501 - pppd segfaults when ms-chap is in use on AMD64
Summary: pppd segfaults when ms-chap is in use on AMD64
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: ppp
Version: 2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact:
URL: http://marc.theaimsgroup.com/?l=linux...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-08 09:05 UTC by Oleg Makarenko
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-21 10:59:05 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Oleg Makarenko 2004-06-08 09:05:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
pppd segfaults with signal 11 when ms-chap authentication is used.

The problem is with sha1.c file that assumes that unsigned long is 32-
bits wide (on AMD64 in is 64-bits wide).

Possible solutions are:

1. get rid of sha1.c and use openssl's sha implementation. that 
requires some trivial pppd patching

or 

2. Patch sha1.c to use int32 instead of unsigned long (for example as 
in

http://marc.theaimsgroup.com/?l=linux-ppp&m=108667897423901&w=2
)

I would prefer to link in libcrypto.


Version-Release number of selected component (if applicable):
ppp-2.4.2-2

How reproducible:
Always

Steps to Reproduce:
run pppd in ms-chap mode
    

Actual Results:  pppd died with signal 11 message in /var/log/message

Additional info:

Comment 1 Thomas Woerner 2004-06-21 10:59:05 UTC
Fixed in rawhide in rpm ppp-2.4.2-3.1 or newer.


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