mirror of
https://github.com/nmap/nmap.git
synced 2026-10-22 20:01:32 +00:00
Fix comparison of StringPoolItem(s) of different lengths. Close #3427
This commit is contained in:
parent
b6727c3de6
commit
59a355c5f7
1 changed files with 1 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class StringPoolItem {
|
|||
|
||||
// asdfq <> asdf
|
||||
bool operator< (const StringPoolItem& other) const {
|
||||
return this->len < other.len || memcmp(this->str, other.str, other.len) < 0;
|
||||
return this->len < other.len || this->len == other.len && memcmp(this->str, other.str, other.len) < 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue