



































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for a university computer science homework assignment focusing on testing the atomicity, fairness, and correct size of a concurrent data structure called boundedatomicqueue, as well as identifying security vulnerabilities in given code snippets. Topics include buffer overflows, format string attacks, and sql injection.
Typology: Assignments
1 / 43
This page cannot be seen from the preview
Don't miss anything!




































Code generateCode(AST method) { if (method.getName() .equals(“authenticateLogin”)) { return .. code with trap door.. } if (method.getName() .equals(“generateCode”)) { return ... code with special code gen ...; } .. generate code normally }
int main(int argc, char *argv[]) { int value; char buf1[80]; … } argv argc return address frame pointer buf value
char buf[20]; char * prefix = “http://”; strcpy(buf,prefix); strncat(buf, path, sizeof(buf) - strlen(buf));