-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
[Bug]: Buffer overflow in __is_mmaped (glibc patches), and other problems #292
Comments
hmm, I think |
I mostly have questions about the environment where you are trying to build glibc, especially looking at your repository. Here are the main ones:
Note that I have not worked with NixOS packages. I am an ArchLinux/Termux user. So I may have additional questions. I'll also note that I'm working on a global glibc update (you can see it in the glibc branch). There are changes there that solve the problem with
Okay, thanks for the advice. |
yes, all patches from but configure flags are not identical, but I think that at this point it doesn't matter.
regular gcc,
memset (with length of the other problems are just real warnings, but glibc compiles fine with theese so mprotect.c is f*cked by UB and strange code by >90%, this is awful. |
Also I think some patches are aimed at solving proot issues, but AFAIK regular debian etc. runs on proot without problems, and I don't need proot patches because I don't want to use proot. source: glibc-packages/gpkg/glibc/mprotect.c Line 5 in 63d5639
Can you explain this? Is this only needed when using proot? Are there other patches that are only needed for proot? |
CFLAGS: that may be not full list because of cc-wrapper's flags, but I think flags like FORTIFY_SOURCE etc. are not relevant here |
Ok, thanks for answering my questions. According to your Regarding the
If I remember correctly,
This link, which is listed as "cause", was added as an analog explanation of the origin of the problem of running
But seriously, I understand. The code |
mmap on free'ed pointer* |
Try to build glibc with this PS: if the compilation succeeds, do not close this issue. It should be closed after merging the |
Problem description
I'm sleepy now, so I don't want to write any explanations here, sorry. But I think you'll understand without explanations, thanks. UPD okay I essentially wrote it for other problems.
glibc-packages/gpkg/glibc/mprotect.c
Line 53 in 63d5639
Also:
-Werror=no-unused-variable
, but it was broken here:glibc-packages/gpkg/glibc/setegid.c.patch
Line 13 in 63d5639
-Werror=maybe-uninitialized
, but it was broken here (sincer
is not probably not initialized, and I don't quite understand what valuer
should have):glibc-packages/gpkg/glibc/clock_gettime.c.patch
Line 7 in 63d5639
And... for the future: please create all patches with the
-p
flag, for better navigation through patches.-p, --show-c-function show which C function each change is in
The text was updated successfully, but these errors were encountered: