Skip to content

Commit 2aa8fdb

Browse files
committed
add code and lighttpd 1.4.15
1 parent aeaf51b commit 2aa8fdb

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM debian:buster-slim as builder1
22
RUN apt-get update && \
3-
apt-get install -y gcc make libc6-dbg
3+
apt-get install -y gcc make libc6-dbg
44
COPY mayhemit-c/mayhemit.c .
55

66
# compile with coverage
@@ -14,6 +14,7 @@ WORKDIR /build
1414
COPY lighttpd/lighttpd-source /build/lighttpd/lighttpd-source
1515

1616
RUN cd /build/lighttpd/lighttpd-source \
17+
&& sed -e s/AM_C_PROTOTYPES/AC_C_PROTOTYPES/g -i configure.in \
1718
&& ./autogen.sh \
1819
&& CFLAGS=-g ./configure --without-bzip2 --without-pcre --without-zlib --build=x86_64-unknown-linux-gnu \
1920
&& CFLAGS=-g make \
@@ -25,6 +26,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends libc6-dbg
2526
COPY mayhem/testsuite /testsuite
2627
COPY --from=builder1 /mayhemit /mayhemit
2728
COPY --from=builder2 /usr/local /usr/local
28-
RUN mkdir /www && echo "lighttpd 1.4.52 running!" > /www/index.html
29+
RUN mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
2930
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
3031
EXPOSE 80

lighttpd/lighttpd-source

Submodule lighttpd-source updated 421 files

mayhemit-c/mayhemit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include <stdio.h>
22
#include <string.h>
3+
#include <signal.h>
34

45
int mayhemit(char *buf)
56
{
@@ -8,7 +9,7 @@ int mayhemit(char *buf)
89
if(buf[1] == 'u')
910
if(buf[2] == 'g') {
1011
printf("You've got it!");
11-
// abort();
12+
raise(SIGABRT);
1213
}
1314
return 0;
1415
}

0 commit comments

Comments
 (0)