cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: BUG: free statement in http_negotiate.c giving heap error

From: Arunav Sanyal <arunav.sanyal91_at_gmail.com>
Date: Thu, 18 Apr 2013 17:50:53 +0530

Ok i tested as you said. The original issue is solved.

 I still have this issue in which:-

static void cleanup(struct negotiatedata *neg_ctx) { OM_uint32
minor_status; if(neg_ctx->context != GSS_C_NO_CONTEXT)
gss_delete_sec_context(&minor_status, &neg_ctx->context, GSS_C_NO_BUFFER);
if(neg_ctx->output_token.value) gss_release_buffer(&minor_status,
&neg_ctx->output_token); if(neg_ctx->server_name != GSS_C_NO_NAME)
gss_release_name(&minor_status, &neg_ctx->server_name); memset(neg_ctx, 0,
sizeof(*neg_ctx)); }

fails at the neg_ctx->server_name

a watch in vs 2008 showed that the symbol servername is not defined.

My stack trace in visual studio 2008 is:-

       1. libcurld.dll!cleanup(negotiatedata * neg_ctx=0x022cb874) Line 370
C
       2.libcurld.dll!Curl_cleanup_negotiate(SessionHandle *
data=0x022c3290) Line 378 + 0xe bytes C
       3.libcurld.dll!Curl_output_negotiate(connectdata * conn=0x02755d80,
bool proxy=bool_false) Line 357 + 0xb bytes C
  4. libcurld.dll!output_auth_headers(connectdata * conn=0x02755d80, auth *
authstatus=0x022cb8b4, const char * request=0x100636fc, const char *
path=0x027562a0, bool proxy=bool_false) Line 533 + 0xd bytes C
  5. libcurld.dll!Curl_http_output_auth(connectdata * conn=0x02755d80,
const char * request=0x100636fc, const char * path=0x027562a0, bool
proxytunnel=bool_false) Line 675 + 0x17 bytes C
  6. libcurld.dll!Curl_http(connectdata * conn=0x02755d80, bool *
done=0x0018f7e4) Line 1746 + 0x13 bytes C
  7. libcurld.dll!Curl_do(connectdata * * connp=0x0018f800, bool *
done=0x0018f7e4) Line 5570 + 0x18 bytes C
  8. libcurld.dll!Curl_do_perform(SessionHandle * data=0x022c3290) Line
2111 + 0xd bytes C
  9. libcurld.dll!Curl_perform(SessionHandle * data=0x022c3290) Line 2247
+ 0x9 bytes C
  10. libcurld.dll!curl_easy_perform(void * curl=0x022c3290) Line 536 +
0x9 bytes C
  11. curl.exe!operate(Configurable * config=0x0018fc88, int argc=4, char *
* argv=0x022c1bf0) Line 1360 + 0xf bytes C
  12. curl.exe!main(int argc=4, char * * argv=0x022c1bf0) Line 90 + 0x14
bytes C
  13. curl.exe!__tmainCRTStartup() Line 582 + 0x19 bytes C
  14. curl.exe!mainCRTStartup() Line 399 C
  15. kernel32.dll!7610339a()
  16. ntdll.dll!77819ef2()
  17. ntdll.dll!77819ec5()
  18. libeay32.dll!00650070()
  19. libeay32.dll!00650070()
  20. libeay32.dll!00650070()
  21. libeay32.dll!00650070()

On Thu, Apr 18, 2013 at 3:56 PM, Arunav Sanyal <arunav.sanyal91_at_gmail.com>wrote:

> Ok sorry for the delay since I had other work.
>
> Well I am trying out the snapshot that you proposed and I am getting
> syntax errors. The description of this error is given in:-
>
> http://stackoverflow.com/questions/16080384/curl-7-30-snapshot-syntax-error
>
> I am trying spnego after commenting these lines know, I will let you know
> at the earliest possible time
>
> Yours sincerely
> Arunav Sanyal
>
>
> On Thu, Apr 4, 2013 at 5:31 AM, Yang Tse <yangsita_at_gmail.com> wrote:
>
>> On Tue, Mar 26, 2013, Arunav Sanyal <arunav.sanyal91_at_gmail.com> wrote:
>>
>> > Ok line number 308 is the malloc call which occurs immediately after
>> > the free statement that i talked about. This malloc is never reached,
>> > since the free itself causes a breakpoint after which I cannot step
>> > forward
>>
>> Daily snapshot http://curl.haxx.se/snapshots/ with date "April 4,
>> 2013" includes commit 3dcc1a9c19 which addresses several memory
>> handling issues related with SPNEGO.
>>
>> https://github.com/bagder/curl/commit/3dcc1a9c19
>>
>> Try it, and report back.
>>
>> --
>> -=[Yang]=-
>>
>
>
>
> --
> Arunav Sanyal
> 4th year undergraduate student
> B.E (Hons) Computer Science
> BITS Pilani K.K Birla Goa Campus
>

-- 
Arunav Sanyal
4th year undergraduate student
B.E (Hons) Computer Science
BITS Pilani K.K Birla Goa Campus

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-04-18