Bankim Bhavsar has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/15396 )

Change subject: [util] Changes to allow serializing/de-serializing 
BlockBloomFilter to a custom format
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/15396/1/src/kudu/util/block_bloom_filter.cc
File src/kudu/util/block_bloom_filter.cc:

http://gerrit.cloudera.org:8080/#/c/15396/1/src/kudu/util/block_bloom_filter.cc@134
PS1, Line 134: directory_
> It's possible the input directory size is 0 if alway_false is TRUE. Should
If always_false is true doesn't mean directory size is 0 even with 0 
log_space_bytes. For the case when always_false is true, it'd be a directory 
that's empty but with valid memory allocated just no elements inserted in the 
BF.
Based on the implementation of InitInternal(), directory_size() can't be 0. So 
if input directory.size() is 0 then check above on L129 will catch it.

Now if Slice were to wrap a nullptr and specify a non-zero size for "directory" 
they we have a problem with memcpy(). That appears like a artificially crafted 
rogue Slice to me.



--
To view, visit http://gerrit.cloudera.org:8080/15396
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I79504813024abaf452e2c2b244391024b442d6f7
Gerrit-Change-Number: 15396
Gerrit-PatchSet: 1
Gerrit-Owner: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Adar Dembo <[email protected]>
Gerrit-Reviewer: Bankim Bhavsar <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Thomas Tauber-Marshall <[email protected]>
Gerrit-Reviewer: Wenzhe Zhou <[email protected]>
Gerrit-Comment-Date: Tue, 10 Mar 2020 23:50:25 +0000
Gerrit-HasComments: Yes

Reply via email to