-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing version info parse #921 #2362
Conversation
btw, parsing resource directory is the first step to many of PE Info #921 parsing |
f0ee211
to
fc78b93
Compare
You can store UTF-16 as a base64 in sdb. |
Yep. Use native sdb functions to do that. Anyway you can also convert utf16 to utf8. That will be more readable but you lose the original encoding, not sure if you really need that, but i prefer to work in utf8 all the time.
|
Being able to retrieve the original content is very resources. |
The original content is inside the file. When you get a string you want it readable and accessible by the user.
|
Yes of course if it's only string issue it's ok 👍 |
|
||
static void free_Var(Var *var) { | ||
if (var) { | ||
if (var->szKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to check if bla
is null before calling free (bla)
:)
Except the |
It would be cool to have some tests to avoid regressions btw ;) |
This one is heavily related #926 |
@jvoisin for the moment it doesn't display anything so, it's quite hard to test. But I suppose this resource parser is launch against all PE files in format.pe tests and passes current tests. |
if you store that information in sdb, the user can access it using the |
6de941d
to
b6cff43
Compare
Guys, you could check version info parsing. It is in bin/cur/info/vs_version_info directory in sdb. Comments, claims, complaints highly required. Thinking of adding regression test. |
@AntonDevil See the green check, means that you didn't break tests ;-) |
ready to merge? |
@radare Yes |
Those changes can't be applied to master. Can you redo the pullreq with a single-squashed commit rebased from the master branch? thanks |
Implementing version info parse
b6cff43
to
e4da8cd
Compare
@radare done |
Thanks! merged |
Well... that broke the windows build because of dupped defines. |
Fixed in 1aac146fdfdc9ff16812f9ba21ea9586f00ef3a6 |
Resource directory and version info structure parse implemented.
Parsing tested. Need to think about storing information and how
to work with UTF-16 (mb storing in sdb in UTF-8?) Assumed that
PE file resource directory 3 levels deep (type group - entries - langs).
proposals and advices are welcome =)