Paweł Bylica
81db59cede
loader: Make error_code in evmc_load_and_create() optional
2019-06-05 16:07:49 +02:00
Paweł Bylica
8c3b3e61e6
loader: Change strcpy_sx() to be limited version of strcpy_s()
...
The strcpy_sx() now reports errors and behaves as strcpy_s() when buffer is too small (nulls the buffer). But it does not have all the checks.
2019-05-31 08:15:17 +02:00
Paweł Bylica
5757da5859
loader: Expose strcpy_sx() for testing
2019-05-31 08:15:17 +02:00
Paweł Bylica
7b02081f2e
loader: Destroy VM with incompatible ABI
...
When a VM is loaded but turns out is has incompatible ABI version it should be destroyed before reporting the loading error and returning a null handle.
Fixes https://github.com/ethereum/evmc/issues/305
2019-05-30 14:21:04 +02:00
Paweł Bylica
ba10da07d0
loader: Use new VM mock with wrong ABI version
2019-05-30 14:15:20 +02:00
Paweł Bylica
591ac7c3a8
loader: Add more interesting VM mocks for unit tests
2019-05-30 14:10:00 +02:00
Paweł Bylica
d0a92e6202
vmtester: Workaround MSVC C++17 compilation issue
2019-05-06 12:33:04 +02:00
Paweł Bylica
39162766df
Update copyright year, include the years of files creation
2019-04-24 18:36:28 +02:00
Paweł Bylica
4484a8b74a
loader: Add loading error messages
2019-04-24 15:02:56 +02:00
Paweł Bylica
51fe9f48d4
loader: Abstract and mock evmc_last_error_msg()
2019-04-24 15:02:56 +02:00
Paweł Bylica
d8f09d1d11
test: Rewrite loader unit tests by mocking DLL loading
2019-03-13 22:07:13 +01:00
Paweł Bylica
c2bf49b2ef
test: Refactor a loader unit test
2019-03-13 22:07:13 +01:00
Paweł Bylica
391a300d08
Add unit tests for "evmc_create()"
2018-08-27 21:30:07 +02:00
Paweł Bylica
43fc619a7e
Update license note in headers of source files
2018-08-22 13:57:25 +02:00
Paweł Bylica
0659e24db0
Update copyright notice
2018-08-21 09:44:18 +02:00
Paweł Bylica
2e2b7f0e81
loader: Add unit tests for load_and_create()
2018-07-13 16:28:15 +02:00
Paweł Bylica
6b0ab05d07
loader: Fix support for Windows paths
2018-07-10 13:07:07 +02:00
Paweł Bylica
721f2b3083
loader: Return function pointer instead of EVM instance
2018-07-10 13:04:48 +02:00
Paweł Bylica
49e26b1ede
loader: Add Windows support
2018-07-10 13:02:42 +02:00
Paweł Bylica
02b52e2926
Add evmc::loader library to support dynamic loading
2018-07-10 12:57:29 +02:00