Skip to content

Handle faults during memory allocation#10

Open
LudovicRousseau wants to merge 2 commits into
mij:masterfrom
LudovicRousseau:memory
Open

Handle faults during memory allocation#10
LudovicRousseau wants to merge 2 commits into
mij:masterfrom
LudovicRousseau:memory

Conversation

@LudovicRousseau

Copy link
Copy Markdown

fixes several situations that cause segmentation faults

Patch from LudovicRousseau/PCSC@a801c6e
Some changes are already included upstream (malloc() return value test).
This patch includes the remaining changes.

fixes several situations that cause segmentation faults
Changes in 7253acd added malloc() tests
and returns in case of errors.

If something fails in list_insert_at() we must free the memory allocated
for the new element (that was not inserted).
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