Re: [Sofia-sip-devel] msg_header_format issue (?)

2009-01-16 Thread Pekka Pessi
2009/1/16 Andrew Rechenberg Lists flux...@resurgent.com: I've got the NTLM code returning a Base 64 encoded auth challenge but when I try to run my gssapi char * variable through msg_header_format the actual value of the variable is being modified/overwritten somehow. Interesting...

Re: [Sofia-sip-devel] msg_header_format issue (?)

2009-01-16 Thread Andrew Rechenberg Lists
The idea is to try to print header in a small buffer, and if it does not fit, allocate bigger one. If snprintf() works (and why it should not??), there should be no overflow. What the snprintf() returns on the first round, what is the value it returns? My data gets overwritten before

[Sofia-sip-devel] msg_header_format issue (?)

2009-01-15 Thread Andrew Rechenberg Lists
More issues with my NTLM code - again, might be me, but I need some help :) I've got the NTLM code returning a Base 64 encoded auth challenge but when I try to run my gssapi char * variable through msg_header_format the actual value of the variable is being modified/overwritten somehow. It

Re: [Sofia-sip-devel] msg_header_format issue (?)

2009-01-15 Thread Pekka Pessi
2009/1/15 Andrew Rechenberg Lists flux...@resurgent.com: More issues with my NTLM code - again, might be me, but I need some help :) I've got the NTLM code returning a Base 64 encoded auth challenge but when I try to run my gssapi char * variable through msg_header_format the actual value of

Re: [Sofia-sip-devel] msg_header_format issue (?)

2009-01-15 Thread Andrew Rechenberg Lists
I've got the NTLM code returning a Base 64 encoded auth challenge but when I try to run my gssapi char * variable through msg_header_format the actual value of the variable is being modified/overwritten somehow. Interesting... Can you run your code under valgrind? Sounds like a