[Webkit-unassigned] [Bug 146473] Errors in read() are not handled in WTF::cryptographicallyRandomValuesFromOS.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 30 15:22:11 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=146473

--- Comment #8 from Geoffrey Garen <ggaren at apple.com> ---
Comment on attachment 255860
  --> https://bugs.webkit.org/attachment.cgi?id=255860
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=255860&action=review

>> Source/WTF/wtf/OSRandomSource.cpp:53
>> +}
> 
> Is there a good reason for these, isntead of just using CRASH or RELEASE_ASSERT_NOT_REACHED directly?

I requested this so that we get back definitive crash traces that differentiate the one kind of failure from the other. Currently, our crash traces do not tell us which failure happened.

> Source/WTF/wtf/OSRandomSource.cpp:70
> +        ssize_t currentRead = read(fd, buffer+amountRead, length-amountRead);

Our style requires spacing around + and -.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150630/beb15846/attachment.html>


More information about the webkit-unassigned mailing list