i++;
}
- String data;
+ String data = new String();
it.reset(fragmentListPtr);
while(it.hasNext(fragmentListPtr)) {
Packet fragmentPtr = (Packet)it.next(fragmentListPtr);
- data = new String(fragmentPtr.data);
+ data = (new String(fragmentPtr.data));
}
Decoded decodedPtr = new Decoded();
} else {
/* Create random string */
int length = (randomPtr.random_generate() % maxLength) + 1;
- status = allocVectorPtr.vector_pushBack(str);
if (!status) {
System.out.printString("Assert failed: status is null\n");
c[l] = '\0';
str = new String(c);
String str2 = new String(c);
+ status = allocVectorPtr.vector_pushBack(str);
int err = detectorPtr.process(str2);
if (err == error.SIGNATURE) {
status = MAP_INSERT(attackMapPtr, f, str);
Arg.java \
../../../ClassLibrary/JavaSTM/Barrier.java
+include ../common/Makefile.flags
+include ../common/Makefile.builds
-FLAGS=-nooptimize -debug -thread -mainclass ${MAINCLASS}
-
-default:
+prep:
cpp ${MAINCLASS}.java > tmp${MAINCLASS}.java
cpp Stream.java > tmpStream.java
cpp Decoder.java > tmpDecoder.java
./extractLines tmpStream.java
./extractLines tmpDecoder.java
./extractLines tmpRBTree.java
- ../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}
clean:
rm tmp*.java
rm -rf tmpbuilddirectory
rm *.bin
-test:
- cpp ${MAINCLASS}.java > tmp${MAINCLASS}.java
- cpp Stream.java > tmpStream.java
- cpp Decoder.java > tmpDecoder.java
- cpp RBTree.java > tmpRBTree.java
- cpp Queue_t.java > tmpQueue_t.java
- ./extractLines tmp${MAINCLASS}.java
- ./extractLines tmpQueue_t.java
- ./extractLines tmpStream.java
- ./extractLines tmpDecoder.java
- ./extractLines tmpRBTree.java
- ../../../buildscript ${FLAGS} -o ${MAINCLASS} ${SRC}
- ./Intruder.bin -a 10 -l 4 -n 2038 -s 1
-