Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ WORKDIR /build
COPY lighttpd/lighttpd-source /build/lighttpd/lighttpd-source

RUN cd /build/lighttpd/lighttpd-source \
&& sed -e s/AM_C_PROTOTYPES/AC_C_PROTOTYPES/g -i configure.in \
&& ./autogen.sh \
&& CFLAGS=-g ./configure --without-bzip2 --without-pcre --without-zlib --build=x86_64-unknown-linux-gnu \
&& CFLAGS=-g make \
Expand All @@ -25,6 +26,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends libc6-dbg
COPY mayhem/testsuite /testsuite
COPY --from=builder1 /mayhemit /mayhemit
COPY --from=builder2 /usr/local /usr/local
RUN mkdir /www && echo "lighttpd 1.4.52 running!" > /www/index.html
RUN mkdir /www && echo "lighttpd 1.4.15 running!" > /www/index.html
CMD ["/usr/local/sbin/lighttpd","-D", "-f","/usr/local/etc/lighttpd.conf"]
EXPOSE 80
2 changes: 1 addition & 1 deletion lighttpd/lighttpd-source
Submodule lighttpd-source updated 421 files
3 changes: 2 additions & 1 deletion mayhemit-c/mayhemit.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <string.h>
#include <signal.h>

int mayhemit(char *buf)
{
Expand All @@ -8,7 +9,7 @@ int mayhemit(char *buf)
if(buf[1] == 'u')
if(buf[2] == 'g') {
printf("You've got it!");
// abort();
raise(SIGABRT);
}
return 0;
}
Expand Down