1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 07:43:50 +00:00
Commit Graph

78 Commits

Author SHA1 Message Date
Bryan Roe
f5906fac77 Fixed bug with IOActive change that causes crash during windows self update 2020-10-16 15:48:36 -07:00
Bryan Roe
a2892996fb IOActive update for size_t vs int for buffer lengths 2020-10-16 00:48:34 -07:00
Bryan Roe
01bae0f5e5 1. Fixed compiler warning
2. Updated chain, so that thread id is saved at creation time
3. Updated Make_AbsolutePath() per IOActive
2020-10-13 16:44:38 -07:00
Bryan Roe
73b1d5e77c Converted atoi to safer alternative 2020-09-24 15:50:27 -07:00
Bryan Roe
9890200f25 Added MIPS24KC (OpenWRT) Support 2020-08-19 17:40:34 -07:00
Bryan Roe
42dcbc8e4d Fixed edge case bug, where if terminate flag was set, Windows Select loop may not unblock 2020-08-11 02:26:29 -07:00
Bryan Roe
0f50542d8d Fixed typo in Windows Server 2012 fix. I meant to pass bytesRead, not bufferLen 2020-07-28 22:17:31 -07:00
Bryan Roe
7b9ce06818 1. Added workaround for ReadFile() problem on Windows Server 2012 2020-07-28 18:27:07 -07:00
Bryan Roe
182469a82c Fixed bug with ILibParseString, if offset was specified 2020-07-28 15:16:40 -07:00
Bryan Roe
d9b236971e Added missing error handler 2020-07-27 09:56:14 -07:00
Bryan Roe
4d828e15da Fixed bug where if no items are in the chain or the handle list, the timeout was left at 0, causing high CPU utilization on Windows. 2020-07-26 00:57:59 -07:00
Bryan Roe
67fc6c54b1 Addressed IOActive issues 2020-07-15 01:24:56 -07:00
Bryan Roe
8dc669699e Added mitigation for signal handling with vfork 2020-07-07 17:05:47 -07:00
Bryan Roe
f2cbf1f10d Updated LoadLibrary() to specify system32 path only 2020-07-06 18:46:48 -07:00
Bryan Roe
0d4f0f6adc 1. Implemented missing event 'net.server.connect'
2. Added integer overflow checks on ILibMemory operations
3. Added better bounds checking for DNS resolve and PE header parsing
2020-06-26 23:10:43 -07:00
Bryan Roe
25539b09d7 Fixed metadata handling bug on Windows, for child_process 2020-05-29 10:10:09 -07:00
Bryan Roe
9e6387599a Added ILibChain_ReadAndSaveStateEx()
Updated Windows IPC Socket, so client connection uses ReadAndSaveState, to start in paused state.
2020-05-29 00:02:59 -07:00
Bryan Roe
74d4ae2c1e Windows, rev1 update 2020-05-23 01:02:44 -07:00
Bryan Roe
c2c12f7ac5 Fixed compiler warning 2020-05-22 15:08:41 -07:00
Bryan Roe
a7b30fb729 Updated metadata 2020-05-22 12:18:46 -07:00
Bryan Roe
2a0cc4435d Fixed #ifdef 2020-05-22 00:31:48 -07:00
Bryan Roe
32935e0102 Updated metadata handling 2020-05-22 00:27:01 -07:00
Bryan Roe
383c19f5fe 1. Updated metadata
2. Fixed compiler warning
2020-05-21 19:06:05 -07:00
Bryan Roe
dd216efbe8 Updated metadata 2020-05-21 13:20:42 -07:00
Bryan Roe
3c3a0075a6 Fixed compiler warning 2020-05-20 14:24:02 -07:00
Bryan Roe
16a2f437c3 Added ability to Save/Restore handle wait state
Fixed edge case that could cause a connection to resume twice
2020-05-20 12:05:38 -07:00
Bryan Roe
f2d63ea116 Updated metadata for descriptor tracking 2020-05-19 17:21:07 -07:00
Bryan Roe
f6c254bd4c Fixed crash caused by ChainViewer 2020-05-19 15:53:59 -07:00
Bryan Roe
56cc4c1328 Improved descriptor tracking 2020-05-19 14:47:52 -07:00
Bryan Roe
72ca73dd3d Added ability to fetch handle count 2020-05-19 10:11:59 -07:00
Bryan Roe
eba7419fc9 1. Set upperbound on number of Windows WaitHandles
2. Fixed Windows_IPC to DisconnectNamedPipe() on connected handled when 'end' is called
3. Fixed Windispatch to terminate on when close is emitted
2020-05-19 01:14:18 -07:00
Bryan Roe
66122d43c1 Fixed compiler warning 2020-05-17 18:26:45 -07:00
Bryan Roe
97ad48f2f2 1. Added ILibChain_WriteEx()
2. Updated ILibChain_Continue() on windows to take an optional list of HANDLE**
3. Updated net.socket IPC on Windows  to use ILibChain_ReadEx and ILibChain_WriteEx
4. Fixed child_process.waitExit() on windows to pass only the wait handles for the process
5. Added GetWaitHandles() to ILibProcessPipe
2020-05-15 17:25:49 -07:00
Bryan Roe
67cb052356 fixed microsecond to millisecond conversion error 2020-05-11 15:36:41 -07:00
Bryan Roe
a4c5430879 Updated windows path to use ReadEx when overlapped is supported 2020-05-09 11:02:16 -07:00
Bryan Roe
b2b78a3dbe Fixed so current node can be removed while being dispatched 2020-05-08 19:37:16 -07:00
Bryan Roe
dd0cd1af85 Fixed timeout, for child_process.waitExit() 2020-05-07 22:19:49 -07:00
Bryan Roe
0dc052319c Fixed #ifdef 2020-05-07 12:31:58 -07:00
Bryan Roe
9668b8d77d Update to use new threading model for windows 2020-05-07 10:29:49 -07:00
Bryan Roe
47066bd825 untested changes 2020-05-06 14:03:41 -07:00
Bryan Roe
5fb0cef7db 1. Removed debug message from child-container
2. Fixed WriteEx() behavior
3. Fixed AddWaitHandle() to use APC if called from wrong thread
4. Fixed net.ipcSocket to return correct value if write completed right away
2020-05-05 16:12:23 -07:00
Bryan Roe
969909cca7 Updated WriteEx 2020-05-05 02:00:07 -07:00
Bryan Roe
a58c3279b7 Added WaitHandles array to chain 2020-05-04 21:08:43 -07:00
Bryan Roe
ed418bd695 Fixed bugs on which WSAEvent was closed 2020-05-04 19:21:39 -07:00
Bryan Roe
1bd4e3d07c Updated Windows Chain logic, to use WSAEventSelect and WaitForMultipleObjectsEx 2020-05-04 17:25:55 -07:00
Bryan Roe
10f1f53912 1. Removed usage of wcstomb_s(), which doesn't support UTF8
2. Added WideToUTF8_stupid() helper for API calls that give you byte count instead of character count of a non-null terminated UTF16 string
3. Fixed a few more places to support UTF8
2020-04-30 16:20:37 -07:00
Bryan Roe
71bd469551 fix 2020-04-29 03:01:44 -07:00
Bryan Roe
3843d0173d 1. Added NULL reference check
2. Removed suspend/resume duktape call
2020-04-23 19:53:57 -07:00
Bryan Roe
54b291187b 1. Fixed compiler warning when NO_IFADDR is defined
2. Added pthread_timedjoin_np() workaround for older glibc/gcc
2020-04-23 16:47:57 -07:00
Bryan Roe
6cfd62ed42 1. Added sem_timedwait to macos
2. Added Workaround for pthread_timedjoin_np() for macos
2020-04-21 16:22:39 -07:00