4
0
mirror of https://github.com/QuasarApp/LIEF.git synced 2025-05-14 04:09:33 +00:00

25 Commits

Author SHA1 Message Date
Romain Thomas
3602643f5d Fix memory leaks in the MachO Python API and create FatBinary
API Changes:

LIEF::MachO::Parser won't return a 'std::vector' of MachO::Binary*
but a pointer to MachO::FatBinary object
It's a kind of wrapper on std::vector<MachO::Binary*>
2017-09-29 13:06:08 +02:00
Romain Thomas
554fa153af Fix MachO meme leaks (related ) 2017-09-28 20:50:38 +02:00
Romain Thomas
7a0dc28ea2 Integration of llvm libFuzzer 2017-09-28 10:54:37 +02:00
Romain Thomas
7f6aeb0d0d Enable ASAN, TSAN, USAN and LSAN 2017-09-28 08:54:40 +02:00
Romain Thomas
051a452415 Use archives instead of all repos 2017-09-24 14:00:35 +02:00
Romain Thomas
9503f2fc7b Add relocation in the Abstract layer
The abstracted attributes are:
  * Address: virtual address where the relocation occurs
  * Size: size in bits of the relocation

See: LIEF::Relocation / lief.Relocation and abstract_reader

Resolve: 
2017-09-05 22:00:31 +02:00
Romain Thomas
b94900ca7f Improve the ELF part of LIEF
Major changes (features):
  * Enable adding multiple sections/segments - Executable (PIE or not), Library
  * Enable adding multiple dynamic entries (DT_NEEDED, DT_INIT etc)
  * Enable adding multiple relocations
  * Enable adding multiple dynamic symbols
  * Enable segment replacement

Major changes (API):
  * Getters Binary::get_*name*() has been renamed to "name()"
  * Binary::add(const DynamicEntry& entry) - To add an entry in the dynamic table
  * Section& Binary::add(const Section& section, bool loaded = true) - To add a section(s)
  * Segment& Binary::add(const Segment& segment, uint64_t base = 0) - To add segments
  * Segment& replace(const Segment& new_segment, const Segment& original_segment, uint64_t base = 0)
  * Binary's last_offset_section(), last_offset_segment(), next_virtual_address()
    to have information about offset
  * Binary's add_library(), get_library(), has_library() to handle
    DT_NEEDED entries

Other changes:
  * Binary::insert_content() - Use add(const Section&) or add(const Segment&) instead
  * ELF's DataHandler has been cleaned
  * Through LIEF::Section one can look for integers, strings, data
    within the section (see LIEF::Section::search,
    LIEF::Section::search_all)
  * Through LIEF::Binary one can get *xref* of a number (or address)
    see LIEF::Binary::xref function
  * To access to the Abstract binary in Python, one can now use
    the 'abstract' attribute. (e.g. binary.abstract.header.is_32)

Resolve: 
Resolve: 
Resolve: 
2017-09-02 08:54:54 +02:00
Adrien Guinet
3a76b8dddc Make JSON related API optional 2017-08-20 07:08:50 +02:00
Romain Thomas
45398952e1 Remove hard coded verbose level 2017-07-31 16:26:08 +02:00
Adrien Guinet
a244e3485f Prefix external project names with "lief_" to avoid conflicts 2017-07-27 16:29:15 +02:00
Romain Thomas
968e93f95c Factorize Python packages 2017-07-25 17:06:30 +02:00
Romain Thomas
6dd8b10325 Provide 'FindLIEF.cmake' to be easily integrated with CMake
* Now examples are provided in packages (SDK)
  * Add an examples in the doc to use 'find_packges()' with LIEF
2017-07-19 15:46:37 +02:00
Romain Thomas
14fb1ce32a Move to v9.94.2 of easyloggingpp 2017-07-19 06:51:44 +02:00
Romain Thomas
637ab3113d Add 'enable_testing()' in the main CMake (Windows bug) 2017-07-18 17:13:18 +02:00
Romain Thomas
5ed502119f Move tests/samples to https://github.com/lief-project/samples 2017-07-18 13:43:20 +02:00
Romain Thomas
a26ee06248 Bump to version 0.7.0 2017-07-01 18:44:20 +02:00
Romain Thomas
e4cd61e4bf Serialize PE object into json (resolve ) 2017-06-14 10:17:45 +02:00
Jessy Campos
27c78a3715 Grouping src files and headers in order to display them correctly in VS Solution Explorer 2017-04-25 12:41:21 -04:00
Romain Thomas
ab9c7d7e86 Cleanup cmake 2017-04-16 13:49:44 +02:00
Romain Thomas
7ca2480c70 Disable '-Wno-expansion-to-defined' when not available 2017-04-16 10:53:28 +02:00
Romain Thomas
d75fd098b9 Enclose paths within quotes (fix ) 2017-04-05 15:33:18 +02:00
Romain Thomas
5461523d95 Fix missing C headers in packages. (fix ) 2017-04-05 13:58:42 +02:00
Romain Thomas
8b298958ea Use tagged version of 'easyloggingpp' and 'rang' 2017-04-05 13:24:50 +02:00
Romain Thomas
e100c60417 Fix typos 2017-04-04 16:32:41 +02:00
Romain Thomas
306a191a03 First public release 2017-03-30 16:56:49 +02:00