Fixed possible bug in VM. Added coverity rules to makefiles.

This commit is contained in:
Dale Weiler 2013-06-22 00:15:25 +00:00
parent 52e7394418
commit edf59e4f73
3 changed files with 16 additions and 1 deletions

View file

@ -79,6 +79,12 @@ gource-record:
depend:
@makedepend -Y -f BSDmakefile -w 65536 2> /dev/null ${DEPS:C/\.o/.c/g}
coverity:
@cov-build --dir cov-int $(MAKE) -f BSDmakefile
@tar czf gm-qcc.tgz cov-int
@rm -rf cov-int
@echo gm-qcc.tgz generated, submit for analysis
install: install-gmqcc install-qcvm install-gmqpak install-doc
install-gmqcc: $(GMQCC)
install -d -m755 $(DESTDIR)$(BINDIR)

View file

@ -115,6 +115,13 @@ gource-record:
depend:
@ makedepend -Y -w 65536 2> /dev/null $(subst .o,.c,$(DEPS))
coverity:
@cov-build --dir cov-int $(MAKE)
@tar czf gm-qcc.tgz cov-int
@rm -rf cov-int
@echo gm-qcc.tgz generated, submit for analysis
#install rules
install: install-gmqcc install-qcvm install-gmqpak install-doc
install-gmqcc: $(GMQCC)

4
exec.c
View file

@ -304,7 +304,9 @@ static void trace_print_global(qc_program *prog, unsigned int glob, int vtype) {
int len;
if (!glob) {
len = printf("<null>,");
if ((len = printf("<null>,")) == -1)
len = 0;
goto done;
}