Rob-- / memoryjs

Read and write process memory in Node.js (Windows API functions exposed via Node bindings)
MIT License
632 stars 86 forks source link

Update dependency versions, fix build issue and type mismatch errors #120

Open chef-wally opened 3 months ago

chef-wally commented 3 months ago

Build issue due to security patch (https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2/)

TODO - Resolve Warnings:

C:\memoryjs\lib\functions.h(65,26): warning C4311: 'type cast': pointer truncation from 'LPVOID' to 'int' [C:\memoryjs\build\memoryjs.vcxproj]
  (compiling source file '../lib/memoryjs.cc')
  C:\memoryjs\lib\functions.h(65,26):
  the template instantiation context (the oldest one first) is
        C:\memoryjs\lib\memoryjs.cc(949,26):
        see reference to function template instantiation 'Call functions::call<int>(HANDLE,std::vector<functions::Arg,std::allocator<functions::Arg>>,functions::Type,DWORD64,const char **)' being compiled

C:\memoryjs\lib\functions.h(65,26): warning C4302: 'type cast': truncation from 'LPVOID' to 'int' [C:\memoryjs\build\memoryjs.vcxproj]
  (compiling source file '../lib/memoryjs.cc')

C:\memoryjs\lib\functions.h(116,24): warning C4311: 'type cast': pointer truncation from 'LPVOID' to 'DWORD' [C:\memoryjs\build\memoryjs.vcxproj]
  (compiling source file '../lib/memoryjs.cc')

C:\memoryjs\lib\functions.h(116,24): warning C4302: 'type cast': truncation from 'LPVOID' to 'DWORD' [C:\memoryjs\build\memoryjs.vcxproj]
  (compiling source file '../lib/memoryjs.cc')