Commit Graph

60 Commits

Author SHA1 Message Date
gibbed
4aaca8cbf3 Fixed copying junk data into initialized XEX memory when XEX is unencrypted. 2016-06-22 15:53:07 -05:00
x1nixmzeng
06f259c87d Mask the name index instead
The maximum number of import libraries (32) is already asserted
2016-01-09 02:43:29 +00:00
x1nixmzeng
7e4fdf7669 Fixed rare crash when accessing library import by name
The library name index may only be 8-bits.

This bug was not present in the previous implementation due to a bitmask
(0xFF) - see
ea99ba8e3b/src/xenia/kernel/util/xex2.cc (L272)
2016-01-09 01:19:05 +00:00
Ben Vanik
2f012fb56d Though I disagree with these lint fixes, I want travis to shut up. 2016-01-01 18:38:20 +00:00
Ben Vanik
b02ca62388 Fixing most remaining C++ warnings in clang. 2016-01-01 18:37:33 +00:00
Ben Vanik
1956b8708e Fixing include orders and whitelisting others.
Will be broken until clang SVN 253772 is available on travis/snapshots.
2015-11-21 11:34:46 -08:00
Ben Vanik
14beb27ebc xb style. 2015-08-07 07:56:57 -07:00
Ben Vanik
5e08889d93 More style cleanup. 2015-08-06 20:17:01 -07:00
Ben Vanik
5bd7833e87 More clang fixes. xenia-kernel is clean. 2015-07-19 21:29:06 -07:00
Ben Vanik
91d7acf59e Fixing some particularly bad /W4. 2015-07-18 23:04:21 -07:00
Dr. Chat
1788ee1589 Linting. 2015-07-03 20:11:08 -05:00
Dr. Chat
be5f8d3aa4 Simplify some logic in parsing import libraries
Change struct used in export lookups
2015-07-03 08:17:23 -05:00
Ben Vanik
d7a5c74bf3 Formatting: force pointers to the left side. 2015-06-30 16:16:33 -07:00
Ben Vanik
84e884a07f Moving get_opt_header out of xex2. 2015-06-28 14:01:53 -07:00
Ben Vanik
010b701e05 Iterating on RtImageXexHeaderField. 2015-06-28 13:44:59 -07:00
Ben Vanik
7875a4b0ba Merge pull request #300 from DrChat/hmodule_fix
Swap to using HMODULE instead of handles for xex modules.
2015-06-28 12:01:32 -07:00
Dr. Chat
c47c0b3354 Uhh, lint 2015-06-28 13:29:54 -05:00
Dr. Chat
8a6c620fe7 XUserModule::GetOptHeader 2015-06-27 22:42:17 -05:00
Dr. Chat
169cb65d96 Remove unused execution_info_ptr 2015-06-27 22:38:10 -05:00
Dr. Chat
c228c0fa73 Add some native xex2 structs and handling functions 2015-06-27 21:32:16 -05:00
Ben Vanik
1ac19f1b08 Replacing vfs memory mapping with base memory mapping.
Progress on #294.
2015-06-27 18:02:20 -07:00
Ben Vanik
fb1f4906d9 xb format --all (we are now format clean). Buildbot will yell at you. 2015-06-22 22:26:51 -07:00
Drew DeVault
a064ba053e Add missing includes for cstring 2015-06-16 23:16:18 -06:00
Dr. Chat
9c949a2e87 Don't need to memset the xex memory twice. 2015-05-18 10:42:35 -05:00
Dr. Chat
88733bf8ba Zero-fill the memory where we're placing the xex 2015-05-18 00:50:58 -05:00
Ben Vanik
147a70b9c1 Rewriting memory manager. 2015-05-17 00:16:56 +01:00
Dr. Chat
e6b4c6056f Calculate xex size based on the total size of all of the sections 2015-05-14 21:54:18 -05:00
Ben Vanik
4411a4499d XEX-style exports, dumping exports, and prepping kernel export lookup. 2015-05-09 00:59:03 -07:00
Ben Vanik
b07d5b8ed3 Fixing compile warnings. 2015-05-05 18:52:37 -07:00
Dr. Chat
bffd2624fc Lookup XEX export by ordinal 2015-05-05 18:54:01 -05:00
Ben Vanik
442e5f2840 clang-format 2015-05-04 20:24:02 -07:00
Dr. Chat
1571c51a56 Kill some unused code 2015-05-04 20:33:04 -05:00
Dr. Chat
6a602affed Don't parse loader export table for now (since it's referenced to with an exact address) 2015-05-04 18:16:31 -05:00
Dr. Chat
211cd0760a Use header->exe_address instead (in-case the module is relocated) 2015-05-04 18:11:39 -05:00
Dr. Chat
49c8efdc6d XexGetProcedureAddress by name implemented. 2015-05-04 18:02:57 -05:00
Ben Vanik
e3220f7ae6 Code cleanup: moving poly/ into xenia/base/ 2015-05-02 03:42:51 -07:00
Ben Vanik
30f7effa73 Code cleanup: removing common.h 2015-05-02 01:25:59 -07:00
Ben Vanik
ec84a688e9 Starting to properly attribute virtual vs. physical memory accesses. 2015-03-29 11:11:35 -07:00
Ben Vanik
71eabf7f2b Fixing some misc bugs. 2015-03-28 15:45:39 -07:00
Ben Vanik
281abea955 Converting addresses in xe::cpu to 32bit. 2015-03-24 19:41:29 -07:00
Ben Vanik
29912f44c0 Moving alloy/ into xenia/cpu/ to start simplifying things. 2015-03-24 07:46:18 -07:00
Ben Vanik
00e4a4fe1b Fix #include format. 2015-01-31 22:49:47 -08:00
Ben Vanik
a0eebf8898 Removing old run loop/ref/core/etc. 2014-12-31 19:26:51 -08:00
Ben Vanik
1ae2f2a7af Fixing warnings under the new VC++. 2014-12-19 19:29:12 -08:00
Ben Vanik
447b5bf316 Fixing xex loading into 4k pages. 2014-09-13 19:32:37 -07:00
Ben Vanik
cecf83b7b7 Removing xenia/malloc.*
Using standard memory functions now.
2014-08-20 22:22:47 -07:00
Ben Vanik
48a0e5c601 Shrinking alloy memory interface so that alloy-sandbox doesn't need xe. 2014-08-19 21:02:15 -07:00
Ben Vanik
1c4dcd5e0e clang-format on most of kernel/ 2014-08-17 13:13:03 -07:00
Ben Vanik
24fe169f36 Last bit of string cleanup. string.h finally gone. 2014-08-17 11:48:29 -07:00
Ben Vanik
f2a9fa3bf9 XECOUNT to countof. 2014-08-16 17:58:33 -07:00