Skip to content

Commit c25b045

Browse files
committed
Modules/IOStates: updated comment
Signed-off-by: Marco Wang <m.aesophor@gmail.com>
1 parent 255c536 commit c25b045

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/Modules/IOStates/IOStates.h

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,18 @@
3131

3232
namespace s2e::plugins::crax {
3333

34-
// This is an implementation of "IOState" from balsn's LAEG,
35-
// but adapted to S2E's multi-path execution environment.
34+
// This is an implementation of "IOState" from balsn's LAEG, but adapted
35+
// to S2E's multi-path execution environment. We renamed it to IOState"s"
36+
// because an execution path con contain more than just one I/O state.
3637
//
37-
// We renamed it to IOState"s" because an execution path
38-
// con contain more than just one I/O state.
38+
// The sequence of I/O states of each execution path is stored in the
39+
// vector `IOStates::State::stateInfoList`, i.e., each path has its
40+
// own list of I/O states.
3941
//
40-
// The sequence of I/O states of each execution path is
41-
// stored in the vector `IOStates::State::stateInfoList`.
42-
// Namely, each path has its own list of I/O states.
42+
// Reference:
43+
// [1] Mow Wei Loon. Bypassing ASLR with Dynamic Binary Analysis for
44+
// Automated Exploit Generation (2021)
45+
4346
class IOStates : public Module {
4447
public:
4548
enum LeakType {
@@ -64,7 +67,7 @@ class IOStates : public Module {
6467
};
6568

6669
struct SleepStateInfo {
67-
long long sec;
70+
__kernel_time64_t sec;
6871
};
6972

7073
using StateInfo = std::variant<InputStateInfo, OutputStateInfo, SleepStateInfo>;

0 commit comments

Comments
 (0)