emeric636 / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Mongoose crashes when no Accept header is specified #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Do the following request:
"POST /someurl/ HTTP/1.1
Host: somehost.com
Content-Type: text/plain
Content-Length: 15

parameter=value"

2. Mongoose crashes with the message:
"Unhandled exception at 0x70d8b690 in Some.exe: 0xC0000005: Access violation 
reading 
location 0x00000000."

3. Do the following request:
"POST /someuri HTTP/1.1
Host: somehost.com
Accept: text/html
Content-Type: text/plain
Content-Length: 15

parameter=value"

4. Mongoose does not crash.

What is the expected output? What do you see instead?

Mongoose should not crash.

What version of the product are you using? On what operating system?
Mongoose version 2.4, Windows Vista

Greetings.

Original issue reported on code.google.com by lupu...@gmail.com on 29 Apr 2009 at 12:42

GoogleCodeExporter commented 9 years ago
Visual studio shows the line where it crashes: line 2287 in mongoose.c

Original comment by lupu...@gmail.com on 29 Apr 2009 at 12:43

GoogleCodeExporter commented 9 years ago
Are you sure that the problem is in mongoose code? What is some.exe? Are you
embedding mongoose? I have a feeling that you do, and inside your URI handler, 
you
access "Accept" header without checking for NULL.

Original comment by valenok on 29 Apr 2009 at 2:46

GoogleCodeExporter commented 9 years ago
Thanks for the fast reply, I will check that. Yes, mongoose is embedded.

Original comment by lupu...@gmail.com on 29 Apr 2009 at 5:40

GoogleCodeExporter commented 9 years ago
Please re-open it if you clarify the problem in Mongoose code.

Original comment by valenok on 5 May 2009 at 1:05

GoogleCodeExporter commented 9 years ago
You were correct, it was our fault. Thanks for the support!

Original comment by lupu...@gmail.com on 6 May 2009 at 1:27