jxzhxch / portable-executable-library Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/portable-executable-library
Automatically exported from code.google.com/p/portable-executable-library
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
Hello, I'm a beginner, my English is not good.I now have a good pe generated
files. I want to fill it to add a zip package. . I'm running on linux. I hope
to get your help?
email [email protected]
Original issue reported on code.google.com by [email protected]
on 23 Aug 2013 at 4:16
Maybe you'll just commit what you have now...
Original issue reported on code.google.com by [email protected]
on 1 Jun 2014 at 7:38
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
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
There is reading of sizeof(unsigned long) bytes from file, but on 64 bit linux
long is 8 bytes. When replacing long with any 4 byte size ( like int )
everything works fine.
Original issue reported on code.google.com by [email protected]
on 15 May 2013 at 10:40
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.