cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-1074995 ] AV executing mktime fn

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 28 Nov 2004 20:30:36 -0800

Bugs item #1074995, was opened at 2004-11-28 20:30
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1074995&group_id=976

Category: http
Group: crash
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: AV executing mktime fn

Initial Comment:
stack trace follows. I grepped sources for mktime
function and i believe this line has bug:

parsedate.c:379: t2 = mktime(gmt);

it does this: gmt = gmtime(&t); ->
and never verifies whether gmt is not null before
passing it on.

P:\libs\curl-7.12.2\lib>curl -V
curl 7.12.2 (i386-pc-win32) libcurl/7.12.2 OpenSSL/0.9.7e
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL

win XP, SP1

> msvcr71.dll!mktime(tm * tb=0x00000000) Line 70 + 0xb C
         libcurl.dll!1000d1fc()
         libcurl.dll!100017c0()
         ntdll.dll!77f58497()
         ntdll.dll!77f57f98()
         ntdll.dll!77f58a3a()
         ntdll.dll!77f944cb()
         ntdll.dll!77f58bcd()
         ntdll.dll!77f59037()
         kernel32.dll!77e82397()
         ntdll.dll!77f5d8e2()
         ntdll.dll!77f59b7d()
         kernel32.dll!77e7b1ee()
         kernel32.dll!77e7b311()
         msvcr71.dll!_lock_fhandle(int fh=1243108) Line 453 C
         msvcr71.dll!_write(int fh=1, const void *
buf=0x0012f79c, unsigned int cnt=2083859299) Line 91
+ 0x5 C
         00000024()
         msvcr71.dll!_unlock_fhandle(int fh=1) Line 477 C
         msvcr71.dll!_write(int fh=10438344, const void *
buf=0x0000003b, unsigned int cnt=1244680) Line 87 + 0x6 C
         msvcr71.dll!_fwrite_lk(const void *
buffer=0x00000013, unsigned int size=2083962693,
unsigned int num=2084091208, _iobuf *
stream=0x7c36bf3c) Line 129 C
         msvcr71.dll!_unlock_file(void * pf=0x00405b27) Line
305 + 0xe C
         msvcr71.dll!fwrite(const void * buffer=0x1001b438,
unsigned int size=10438344, unsigned int count=11,
_iobuf * stream=0x0000005d) Line 83 + 0x5 C
         msvcr71.dll!_strnicmp(const char * dst=0x10002beb,
const char * src=0x00a00048, unsigned int
count=10484288) Line 63 + 0xe C
         libcurl.dll!10016b45()
         mswsock.dll!71a5617a()
         ntdll.dll!77f5b864()
         mswsock.dll!71a52601()
         mswsock.dll!71a52675()
         ntdll.dll!77f944cb()
         ntdll.dll!77f58bcd()
         ntdll.dll!77f59037()
         ntdll.dll!77f5c534()
         mswsock.dll!71a51ea3()
         ntdll.dll!77f5b864()
         mswsock.dll!71a520a4()
         mswsock.dll!71a524a3()
         mswsock.dll!71a52114()
         msvcr71.dll!free(void * pBlock=0x71ab1930) Line
103 + 0x5 C
         mswsock.dll!71a52114()
         ws2_32.dll!71ab123a()
         ws2_32.dll!71ab1949()
         ws2_32.dll!71ab1949()
         libcurl.dll!10003e74()
         libcurl.dll!10003e84()
         libcurl.dll!1000462b()
         libcurl.dll!10016816()
         curl.exe!00407c8b()

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1074995&group_id=976
Received on 2004-11-29