Skip to content

Commit

Permalink
Merge pull request #6 from Luchinkin/master
Browse files Browse the repository at this point in the history
Fixed out of bounds
  • Loading branch information
JustasMasiulis authored Jun 14, 2022
2 parents db6cc8b + 3763198 commit a355541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/in_memory_init.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace jm {
JM_INLINE_SYSCALL_FORCEINLINE void init_syscalls_list()
{
detail::exports_directory exports(static_cast<const char*>(detail::ntdll_base()));
for(auto i = exports.size();; --i) {
for(auto i = exports.size() - 1;; --i) {
auto entry = jm::syscall_entries();
while(entry->hash != 0) {
if(jm::hash(exports.name(i)) == entry->hash) {
Expand Down

0 comments on commit a355541

Please sign in to comment.