Skip to content
Snippets Groups Projects
Commit a2c8e166 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix reading uninitialized memory in BloomFilter."

parents 3c648ab4 68902462
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@
#ifndef LATINIME_BLOOM_FILTER_H
#define LATINIME_BLOOM_FILTER_H
#include <cstring>
#include <stdint.h>
#include "defines.h"
......@@ -35,6 +36,7 @@ class BloomFilter {
public:
BloomFilter() {
ASSERT(BIGRAM_FILTER_BYTE_SIZE * 8 >= BIGRAM_FILTER_MODULO);
memset(mFilter, 0, sizeof(mFilter));
}
// TODO: uint32_t position
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment