Bug 165024 - Hasher::addCharacters() should be able to handle zero length strings.
Summary: Hasher::addCharacters() should be able to handle zero length strings.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-21 22:18 PST by Mark Lam
Modified: 2016-11-21 22:31 PST (History)
7 users (show)

See Also:


Attachments
proposed patch. (4.22 KB, patch)
2016-11-21 22:23 PST, Mark Lam
ysuzuki: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2016-11-21 22:18:05 PST
Currently, it will fail to handle zero length strings if it has a pending character.
Comment 1 Mark Lam 2016-11-21 22:23:38 PST
Created attachment 295327 [details]
proposed patch.
Comment 2 Yusuke Suzuki 2016-11-21 22:26:46 PST
Comment on attachment 295327 [details]
proposed patch.

r=me
Comment 3 Mark Lam 2016-11-21 22:31:18 PST
Thanks for the review.  Landed in r208958: <http://trac.webkit.org/r208958>.