3/11 practice Debugging [50]

Description

Try to use debug tools and find the fault localization.

The flag is a md5 checksum with the input string that constructed by the name of the function which included the bug and the name of the variable which caused the bug.

The flag format is SDG{md5sum(STRANGE_FUNCTION + STRANGE VARIABLE)}


Jeff is a web server developer. One day, a user reported a bug:

Hi,

I used your web server to build my blog.

It introduced about a disease called Pneumonoultramicroscopicsilicovolcanoconiosis.

There is a webpage named Pneumonoultramicroscopicsilicovolcanoconiosis.html and it was under the directory Pneumonoultramicroscopicsilicovolcanoconiosis.

After I started the server, I accessed my webpage with url like

http://localhost/Pneumonoultramicroscopicsilicovolcanoconiosis/Pneumonoultramicroscopicsilicovolcanoconiosis.html.

However, the web server was crashed!

Tom

Can you help Jeff to find the bug and fix it ?

Hint

  1. This source code is UNIX version. If you have problems when compiling, you should modify something to handle compile time error.
  2. You should start the server with essential arguments.

You can use echo -ne "xddddddddd" | md5sum on linux workstation to calculate the flag.

Files

httpd.c
# Avatar Name Last time Point
1 李冠廷 2020-05-07 22:34:33 +0800 50
2 amy 2019-10-14 20:25:52 +0800 50
3 n0b0dy 2019-05-19 01:07:44 +0800 50
4 Tryout Chen 2017-11-03 16:44:47 +0800 50