Skip to content

Commit

Permalink
Fix a crash on win7 x86 system.
Browse files Browse the repository at this point in the history
  • Loading branch information
吾术 authored and DarthTon committed Jul 17, 2023
1 parent f1a37a8 commit 61fe525
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/BlackBone/Patterns/PatternSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ bool PatternSearch::SearchWithHandler(
ptr_t value_offset /*= 0*/
) const
{
if (scanSize == 0)
return false;

size_t bad_char_skip[UCHAR_MAX + 1];

const uint8_t* haystack = reinterpret_cast<const uint8_t*>(scanStart);
Expand Down

0 comments on commit 61fe525

Please sign in to comment.