Skip to content

remove internal reallocarray()#201

Merged
anakryiko merged 1 commit intolibbpf:masterfrom
vcunat:p/scripts-tmpdir
Sep 30, 2020
Merged

remove internal reallocarray()#201
anakryiko merged 1 commit intolibbpf:masterfrom
vcunat:p/scripts-tmpdir

Conversation

@vcunat
Copy link
Copy Markdown
Contributor

@vcunat vcunat commented Sep 7, 2020

For reference, we ran into this problem due to strict sandboxing in a packaging solution.

... as it's covered by libbpf_reallocarray() since commit dc70da9.

@anakryiko
Copy link
Copy Markdown
Member

libbpf doesn't require check-reallocarray.sh anymore, would you mind instead just removing it?

@vcunat
Copy link
Copy Markdown
Contributor Author

vcunat commented Sep 9, 2020

I certainly wouldn't mind. I ran into 0.1.0 failing due to /tmp being blocked by sandbox (resulting into reallocarray mis-detection) and I actually haven't even checked against master (given the freshness of the release).

@anakryiko
Copy link
Copy Markdown
Member

@vcunat, do you plan to do a follow up and remove check-reallocarray.sh altogether?

@vcunat
Copy link
Copy Markdown
Contributor Author

vcunat commented Sep 29, 2020

Ah, I thought you/someone planned to do it, but now I see that it wasn't clear from your post. So, I did not plan it, but I think I could do it within a couple days.

@vcunat vcunat changed the title check-reallocarray.sh: respect $TMPDIR remove internal reallocarray() Sep 30, 2020
@vcunat
Copy link
Copy Markdown
Contributor Author

vcunat commented Sep 30, 2020

I expect you wanted something like this?

Copy link
Copy Markdown
Member

@anakryiko anakryiko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

almost :)

... as it's covered by libbpf_reallocarray() since commit dc70da9.
@anakryiko anakryiko merged commit 5a10cd2 into libbpf:master Sep 30, 2020
@vcunat vcunat deleted the p/scripts-tmpdir branch September 30, 2020 20:02
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.

2 participants