Bug 124372 - [Mac] HMAC sign/verify crashes when key is empty
Summary: [Mac] HMAC sign/verify crashes when key is empty
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alexey Proskuryakov
Depends on:
Blocks: 122679
  Show dependency treegraph
Reported: 2013-11-14 11:41 PST by Alexey Proskuryakov
Modified: 2013-11-14 11:54 PST (History)
0 users

See Also:

proposed fix (5.56 KB, patch)
2013-11-14 11:45 PST, Alexey Proskuryakov
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Proskuryakov 2013-11-14 11:41:05 PST
Even when key length is 0, CommonCrypto still requires a non-null key data pointer.
Comment 1 Alexey Proskuryakov 2013-11-14 11:45:49 PST
Created attachment 216965 [details]
proposed fix
Comment 2 Alexey Proskuryakov 2013-11-14 11:54:36 PST
Committed <http://trac.webkit.org/r159299>.