Skip to content

Commit 52081b9

Browse files
committed
some log
1 parent 0f95abc commit 52081b9

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

code/include/rlbox_range.hpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ inline void check_range_doesnt_cross_app_sbx_boundary(const void* ptr,
2424
auto ptr_start = reinterpret_cast<void*>(ptr_start_val);
2525
auto ptr_end = reinterpret_cast<void*>(ptr_end_val);
2626

27+
bool safe = rlbox_sandbox<T_Sbx>::is_in_same_sandbox(ptr_start, ptr_end);
28+
29+
if (!safe) {
30+
printf("Unsafe range check: %p, %p\n", ptr_start, ptr_end);
31+
}
32+
2733
detail::dynamic_check(
28-
rlbox_sandbox<T_Sbx>::is_in_same_sandbox(ptr_start, ptr_end),
34+
safe,
2935
"range has overflowed sandbox bounds");
3036
}
3137

0 commit comments

Comments
 (0)