Giter Site home page Giter Site logo

portable-executable-library's People

Watchers

James Cloos avatar

portable-executable-library's Issues

Import: FirstThunk problem

What steps will reproduce the problem?
1. Use import_adder sample to add import
2. Use imports_reader to check if import changed correctly

What is the expected output? What do you see instead?
Expected output is list of import functions, include just added.
Really, I get just DLL name and no import.

What version of the product are you using? On what operating system?
BLISS 1.0 x64 Debug, Win 7 x64
Test file 64-bit (PE32+?) binary.

Please provide any additional information below.
If I understand correctly, OriginalFirstThunk and FirstThunk data must be the 
same to resolve import correctly. But import_added fills only 
OriginalFirstThunk and leave FirstThunk data zeroed.

Original issue reported on code.google.com by [email protected] on 10 May 2013 at 9:46

raw data in class section

raw data defined as std::string in class section(& tls),
in general, a section may includes bytes of code,
so a byte 0 will cut off my data.
I replace it with vector<unsigned char> and it seems
to be working.



Original issue reported on code.google.com by [email protected] on 25 Jun 2013 at 12:20

How to remove resource section

Hello!
I trying to replace resource (remove and create new one with same name).
I following your example 
(https://code.google.com/p/portable-executable-library/source/browse/trunk/sampl
es/resource_editor/main.cpp)

So, i do rename of section

image.section_from_directory(pe_win::image_directory_entry_resource).set_name("o
ldres");

Then create new section 

section new_resources;
new_resources.get_raw_data().resize(1); 
new_resources.set_name(".rsrc"); 
new_resources.readable(true); 
section& attached_section = image.add_section(new_resources);

But after this my PE file become almost 2x times bigger size.

I think this is happening because my resulting PE file have two sections which 
are almost the same except one resource i working with.

So, the question is: How can i completely remove old resource "oldres", so i 
have no duplicate data inside my resulting PE.

Fix me if i'm wrong.

Thanks, Dmitry.


Original issue reported on code.google.com by [email protected] on 11 Sep 2014 at 1:59

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.