Skip to content

Remove pointers from main PE struct#44

Merged
ayoubfaouzi merged 5 commits into
mainfrom
remove-pointers-from-main-PE-struct
Aug 3, 2022
Merged

Remove pointers from main PE struct#44
ayoubfaouzi merged 5 commits into
mainfrom
remove-pointers-from-main-PE-struct

Conversation

@ayoubfaouzi
Copy link
Copy Markdown
Member

The File structure has many pointer to struct fields. The reason why I put those fields as pointers is not to save some memory or because I needed the structs to be modified by some method, it was only yo make it easier when JSON marshaling so we can omit the empty structs because they contain NULL value.

This PR get rid of those pointers as the library should not be biased to any specific use case.

This should not break the APIs.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 3, 2022

Codecov Report

Merging #44 (55c6957) into main (aeb3df6) will decrease coverage by 0.05%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
- Coverage   62.19%   62.13%   -0.06%     
==========================================
  Files          25       25              
  Lines        4452     4445       -7     
==========================================
- Hits         2769     2762       -7     
  Misses       1411     1411              
  Partials      272      272              
Impacted Files Coverage Δ
file.go 58.69% <ø> (ø)
security.go 75.69% <50.00%> (ø)
richheader.go 87.86% <66.66%> (ø)
loadconfig.go 36.42% <88.88%> (-0.19%) ⬇️
dotnet.go 65.49% <100.00%> (-0.41%) ⬇️
exports.go 59.11% <100.00%> (-0.23%) ⬇️
resource.go 78.57% <100.00%> (ø)
symbol.go 72.14% <100.00%> (-0.20%) ⬇️
tls.go 33.33% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ayoubfaouzi ayoubfaouzi merged commit 91c735f into main Aug 3, 2022
@ayoubfaouzi ayoubfaouzi deleted the remove-pointers-from-main-PE-struct branch January 17, 2023 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant