aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc/common/Makefile.in
diff options
context:
space:
mode:
authorMichael Santos <[email protected]>2010-10-01 19:55:17 -0400
committerBjörn Gustavsson <[email protected]>2010-10-04 15:25:22 +0200
commitbe8759e68b337524c056b8bb757ea68c9996d863 (patch)
treeb769fd3390d8cb8b0144479eecae033674b90be9 /erts/etc/common/Makefile.in
parent3d430d0faa33f7d74f1258b400515dc6cea40c4e (diff)
downloadotp-be8759e68b337524c056b8bb757ea68c9996d863.tar.gz
otp-be8759e68b337524c056b8bb757ea68c9996d863.tar.bz2
otp-be8759e68b337524c056b8bb757ea68c9996d863.zip
erlc: prevent buffer overflows
Check buffer operations and increase the size of the buffer used for holding command line arguments, since the "-D" switch will be expanded into 3 arguments when passed to erl.
Diffstat (limited to 'erts/etc/common/Makefile.in')
-rw-r--r--erts/etc/common/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/etc/common/Makefile.in b/erts/etc/common/Makefile.in
index 333390b2c3..fe7d7b4f6d 100644
--- a/erts/etc/common/Makefile.in
+++ b/erts/etc/common/Makefile.in
@@ -327,7 +327,7 @@ $(OBJDIR)/$(ERLEXEC).o: $(ERLEXECDIR)/$(ERLEXEC).c
$(CC) -I$(EMUDIR) $(CFLAGS) -o $@ -c $(ERLEXECDIR)/$(ERLEXEC).c
endif
$(BINDIR)/erlc@EXEEXT@: $(OBJDIR)/erlc.o
- $(PURIFY) $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/erlc.o -L$(OBJDIR) $(LIBS)
+ $(PURIFY) $(LD) $(LDFLAGS) -o $@ $(OBJDIR)/erlc.o -L$(OBJDIR) $(LIBS) $(ERTS_INTERNAL_LIBS)
$(OBJDIR)/erlc.o: erlc.c
$(CC) $(CFLAGS) -o $@ -c erlc.c