WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167849
Static Analyzer: WebCoreNSURLExtras.mm: Potential leak of memory pointed to by 'allBytesBuffer'
https://bugs.webkit.org/show_bug.cgi?id=167849
Summary
Static Analyzer: WebCoreNSURLExtras.mm: Potential leak of memory pointed to b...
Joseph Pecoraro
Reported
2017-02-04 18:18:16 PST
Static Analyzer: WebCoreNSURLExtras.mm: Potential leak of memory pointed to by 'allBytesBuffer' Test: // $ xcrun clang -framework Foundation -framework WebKit leak-test.m // $ ./a.out // $ leaks `pgrep a.out` #import <Foundation/Foundation.h> #import <WebKit/WebKit.h> @interface NSURL (WebNSURLExtras) - (NSString *)_web_hostString; @end int main() { @autoreleasepool { // String greater than 2048 chracters. NSString *str = @"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..."; NSLog(@">>> %@", [[NSURL URLWithString:str] _web_hostString]); } [[NSRunLoop mainRunLoop] run]; return 0; }
Attachments
[PATCH] Proposed Fix
(1.70 KB, patch)
2017-02-04 18:21 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2017-02-04 18:21:41 PST
Created
attachment 300654
[details]
[PATCH] Proposed Fix
WebKit Commit Bot
Comment 2
2017-02-04 22:25:10 PST
Comment on
attachment 300654
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 300654 Committed
r211677
: <
http://trac.webkit.org/changeset/211677
>
WebKit Commit Bot
Comment 3
2017-02-04 22:25:13 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug