| Summary: | x11-misc/xdiskusage_1.48_p20111016 - re-add reading from pipe plus segfault fix | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Bernd Feige <Bernd.Feige> |
| Component: | Current packages | Assignee: | Desktop Misc. Team <desktop-misc> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | Keywords: | PATCH |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://sourceforge.net/p/xdiskusage/bugs/19/ | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
Re-add the isatty() test removed in CVS version 1.23
Fix segfault caused by missing root name when reading from a pipe Alternative patch making "xdiskusage -" work |
||
|
Description
Bernd Feige
2014-05-02 14:26:44 UTC
Created attachment 376210 [details, diff]
Re-add the isatty() test removed in CVS version 1.23
Created attachment 376212 [details, diff]
Fix segfault caused by missing root name when reading from a pipe
Additional note: CVS version 1.23 really tried to make "xdiskusage -" read from a pipe. This never worked however because arg_cb(), responsible for accepting arguments, "accepts" the "-" as (no-op) argument and therefore the subsequent test for "-" never sees it. If you try to make arg_cb() not accept it, as intended, a segfault results because the argument "-" is forcibly set to NULL and then d->show(argc,argv) is called, having FLTK accessing the elements of argv[]. I attach another patch, as alternative to the first patch, which makes the intended syntax of "xdiskusage -" work. While "xdiskusage -h" output is correct, the man page still needs to be adapted to this use. Regards, Bernd Created attachment 376250 [details, diff]
Alternative patch making "xdiskusage -" work
I just saw that in the course of 2014, the issue was fixed upstream. Current version is 1.51, I confirmed that it fixes this. Could we revbump please? Thanks, Bernd (In reply to Bernd Feige from comment #5) > Could we revbump please? A revision bump, not a version bump? |