Using:
AOLserver 4.1.0a (HEAD)
nsopenssl 3.0 beta (HEAD)
OpenSSL 0.9.7d 17 Mar 2004
ix86 Debian 3.0
Server can be crashed by sending an empty HTTP
request, by doing something like:
$ echo "" | openssl s_client -connect hostname:8443
Backtrace looks like:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1088261040 (LWP 15192)]
0x4003701b in SetupConn (connPtr=0x80d4320) at
driver.c:1813
1813 if (hdr == NULL && connPtr->request->version
>= 1.1) {
(gdb) bt
#0 0x4003701b in SetupConn (connPtr=0x80d4320) at
driver.c:1813
#1 0x40036c19 in SockRead (drvPtr=0x8099c88,
sockPtr=0x80a659c)
at driver.c:1624
#2 0x400379a1 in ReaderThread (arg=0x8099c88) at
driver.c:2151
#3 0x40078f45 in NsThreadMain (arg=0x80d3720) at
thread.c:224
#4 0x4007a87a in ThreadMain (arg=0x80d3720) at
pthread.c:730
#5 0x4013e9b4 in start_thread ()
from /lib/tls/libpthread.so.0
#6 0x00000000 in ?? ()
What's happening is connPtr->request == NULL. While
it'd be easy to add another condition to test for that,
what bothers me is when connecting via normal HTTP,
connPtr->request is NOT NULL on an empty HTTP
request. I am guessing that nsopenssl, on empty HTTP
request, doesn't allocate an empty/initialized Req
structure and stuff it in connPtr->request.
Dossy Shiobara
Protocol: HTTPS
aolserver_v41
Public
|
Date: 2004-08-25 21:18 Logged In: YES |
|
Date: 2004-08-24 20:09 Logged In: YES |
|
Date: 2004-08-23 05:11 Logged In: YES |
|
Date: 2004-08-20 21:33 Logged In: YES |
|
Date: 2004-08-20 19:46 Logged In: YES |
|
Date: 2004-08-20 19:39 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| bug-1012892-v410a-patch.txt | patch against HEAD for 4.1.0a | Download |
| bug-1012892-v408a-patch.txt | patch against aolserver_v40_bp branch for 4.0.8a | Download |
| bug-1012892-v408a-patch-20040823.txt | patch against aolserver_v40_bp branch for 4.0.8a - 20040823 | Download |
| bug-1012892-nsopenssl-patch.txt | patch against nsopenssl HEAD - 20040824 | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | - | 2004-08-25 21:18 | dossy |
| resolution_id | None | 2004-08-25 21:18 | dossy |
| status_id | Open | 2004-08-25 21:18 | dossy |
| File Added | 99024: bug-1012892-nsopenssl-patch.txt | 2004-08-24 20:09 | dossy |
| File Added | 98750: bug-1012892-v408a-patch-20040823.txt | 2004-08-23 05:11 | dossy |
| File Added | 98546: bug-1012892-v408a-patch.txt | 2004-08-20 21:39 | dossy |
| File Added | 98545: bug-1012892-v410a-patch.txt | 2004-08-20 21:38 | dossy |
| assigned_to | scottg | 2004-08-20 19:39 | dossy |
| priority | 5 | 2004-08-20 19:39 | dossy |
| artifact_group_id | aolserver_v40 | 2004-08-20 19:39 | dossy |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use