Skip to content
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

Sync #40

Closed
wants to merge 15 commits into from
Closed

Sync #40

wants to merge 15 commits into from

Conversation

evverx
Copy link
Owner

@evverx evverx commented Dec 8, 2021

No description provided.

@evverx evverx force-pushed the patch branch 2 times, most recently from 3528fb9 to 722371b Compare December 8, 2021 22:01
@lgtm-com
Copy link

lgtm-com bot commented Dec 8, 2021

This pull request fixes 1 alert when merging e9eab80c94e0896ff4a1bfd2ee8e1a3b8499da58 into 51106ac - view on LGTM.com

fixed alerts:

  • 1 for Multiplication result converted to larger type

Repository owner deleted a comment from lgtm-com bot Dec 8, 2021
Repository owner deleted a comment from lgtm-com bot Dec 8, 2021
Repository owner deleted a comment from lgtm-com bot Dec 9, 2021
Repository owner deleted a comment from lgtm-com bot Dec 9, 2021
Mark Wielaard and others added 12 commits December 9, 2021 03:24
When trying to read (corrupt) phdrs from a core file we only want
to read and convert the bytes we could read. Also make sure we don't
try to allocate too big buffers.

https://sourceware.org/bugzilla/show_bug.cgi?id=28666

Signed-off-by: Mark Wielaard <mark@klomp.org>
…dule

While iterating the notes we could overflow the len variable if the
note name or description was too big. Fix this by adding an (unsigned)
overflow check.

https://sourceware.org/bugzilla/show_bug.cgi?id=28654

Signed-off-by: Mark Wielaard <mark@klomp.org>
Without the program header entry size we cannot search through the
phdrs.

https://sourceware.org/bugzilla/show_bug.cgi?id=28657

Signed-off-by: Mark Wielaard <mark@klomp.org>
When calulating the possible section header table end us the actual size
of the section headers (sizeof (Elf32_Shdr) or sizeof (Elf64_Shdr)),
not the ELF header e_shentsize value, which can be corrupted. This
prevents a posssible overflow, but we check the shdrs_end is sane
later anyway.

https://sourceware.org/bugzilla/show_bug.cgi?id=28659

Signed-off-by: Mark Wielaard <mark@klomp.org>
This reverts commit 6563018155dcc0e17ce356d76b9c6538963bff48.
This reverts commit 2b16bca656c16a67b5563cb74120aa2f432c08ed.
dwfl_segment_report_module can be called with the same module
name, start and end address twice (probably because of a corrupt
core file). In that case don't override the main.elf handle if
it already exists.

https://sourceware.org/bugzilla/show_bug.cgi?id=28655

Signed-off-by: Mark Wielaard <mark@klomp.org>
This reverts commit 88e44ebaf95109fbf2f916f12c23a4222f5dc9ed.
Repository owner deleted a comment from lgtm-com bot Dec 9, 2021
Repository owner deleted a comment from lgtm-com bot Dec 9, 2021
Repository owner deleted a comment from lgtm-com bot Dec 9, 2021
@lgtm-com
Copy link

lgtm-com bot commented Dec 9, 2021

This pull request fixes 1 alert when merging d784613 into fe454c1 - view on LGTM.com

fixed alerts:

  • 1 for Multiplication result converted to larger type

@evverx evverx closed this Dec 9, 2021
@evverx evverx deleted the patch branch December 9, 2021 19:25
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