mit-pdos / 6.s060-labs Goto Github PK
View Code? Open in Web Editor NEWProgramming labs for 6.S060 (Foundations of Computer Security).
License: MIT License
Programming labs for 6.S060 (Foundations of Computer Security).
License: MIT License
Hello,
Unless I'm missing something, I believe this is unintended behavior:
Line 1071 of ag1_runner.py
is as follows:
server._storage.userbase[username] = replace_int(udata, 5, api.OperationCode.PUT_PHOTO, api.OperationCode.REGISTER)
This code does not function as I believe it is intended: instead of replacing the integer value of PUT_PHOTO with the integer value of REGISTER, it replaces the integer value of PUT_PHOTO with the Enum object REGISTER. This results in the decode_log_entry
receiving values it items
that are neither int
s nor bytes
types, which would not happen in a real client/server relationship.
To fix this, I think that line 1071 should be replaced with
server._storage.userbase[username] = replace_int(udata, 5, api.OperationCode.PUT_PHOTO.value, api.OperationCode.REGISTER.value)
This will strictly replace an integer with an integer.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.