Skip to content

Commit 848bc1c

Browse files
authored
Fix GetRandom in sanitizer_fuchsia.cpp (#110155)
The `zx_cprng_draw` system call has no limit on how much you can draw. Co-authored-by: Marco Vanotti <[email protected]>
1 parent 100720c commit 848bc1c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ uptr ReadLongProcessName(/*out*/ char *buf, uptr buf_len) {
523523
uptr MainThreadStackBase, MainThreadStackSize;
524524

525525
bool GetRandom(void *buffer, uptr length, bool blocking) {
526-
CHECK_LE(length, ZX_CPRNG_DRAW_MAX_LEN);
527526
_zx_cprng_draw(buffer, length);
528527
return true;
529528
}

0 commit comments

Comments
 (0)