Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29669631: Noissue - Zero size OwnedString should be INVALID (Closed)

Created:
Jan. 15, 2018, 10:24 p.m. by hub
Modified:
Jan. 16, 2018, 1:09 p.m.
Reviewers:
sergei
Base URL:
https://hg.adblockplus.org/adblockpluscore/
Visibility:
Public.

Description

Noissue - Zero size OwnedString should be INVALID

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M compiled/String.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
hub
Jan. 15, 2018, 10:24 p.m. (2018-01-15 22:24:56 UTC) #1
hub
Split out from https://codereview.adblockplus.org/29587914/
Jan. 15, 2018, 10:25 p.m. (2018-01-15 22:25:10 UTC) #2
sergei
Jan. 16, 2018, 12:04 p.m. (2018-01-16 12:04:08 UTC) #3
LGTM

I wonder whether we should actually check all constructors and ensure that when
someone passes something meaningful even u""_str it's a valid string with zero
length, but when e.g. a pointer to the buffer is nullptr then it's an invalid
string.

Powered by Google App Engine
This is Rietveld