move patternfind headers and add license information

This commit is contained in:
zeffy
2017-11-30 00:20:38 -08:00
parent 4c2041cd1b
commit 41fccdf489
9 changed files with 864 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
Based on mrexodia's patternfind code originally written in C++
Licensed under Lesser GNU Public License 3.0
https://bitbucket.org/mrexodia/patternfind
Changes made:
- Ported to C, removed dependency on C++ type vector<T>
- Uses stdint.h type uint8_t instead of unsigned char (for readability)
- Renamed patternfind overloads to patternfind, patternfind_bytes, patternfind_pbyte
- Added VirtualProtect calls to patternwrite function to prevent access violation exceptions