Age | Commit message (Collapse) | Author |
|
Syscall param writev(vector[0]) points to uninitialised byte(s)
at 0x4B836C0: writev (writev.c:26)
by 0x4C74FBF: ??? (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
by 0x4C753B0: xcb_writev (in /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0)
by 0x48B2A24: _XSend (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0)
by 0x48B3088: _XReply (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0)
by 0x48AE6FE: XSync (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0)
by 0x11C523: HandleEnterNotify (events.c:2112)
by 0x117847: DispatchEvent (events.c:335)
by 0x117921: HandleEvents (events.c:363)
by 0x12FCBD: main (twm.c:648)
Address 0x5036874 is 148 bytes inside a block of size 16,384 alloc'd
at 0x48459F3: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
by 0x48A23AA: XOpenDisplay (in /usr/lib/x86_64-linux-gnu/libX11.so.6.4.0)
by 0x49E5A12: XtOpenDisplay (in /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0)
by 0x12EB45: main (twm.c:319)
Uninitialised value was created by a stack allocation
at 0x12828E: send_clientmessage (menus.c:2861)
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Part-of: <https://gitlab.freedesktop.org/xorg/app/twm/-/merge_requests/29>
|
|
Valgrind results before:
definitely lost: 800 bytes in 23 blocks
indirectly lost: 872 bytes in 6 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 991,316 bytes in 1,795 blocks
suppressed: 0 bytes in 0 blocks
Valgrind results after:
definitely lost: 200 bytes in 17 blocks
indirectly lost: 0 bytes in 0 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 918,812 bytes in 994 blocks
suppressed: 0 bytes in 0 blocks
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Part-of: <https://gitlab.freedesktop.org/xorg/app/twm/-/merge_requests/29>
|
|
Valgrind results before:
definitely lost: 981 bytes in 37 blocks
indirectly lost: 872 bytes in 6 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 991,316 bytes in 1,795 blocks
suppressed: 0 bytes in 0 blocks
Valgrind results after:
definitely lost: 800 bytes in 23 blocks
indirectly lost: 872 bytes in 6 blocks
possibly lost: 0 bytes in 0 blocks
still reachable: 991,316 bytes in 1,795 blocks
suppressed: 0 bytes in 0 blocks
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Part-of: <https://gitlab.freedesktop.org/xorg/app/twm/-/merge_requests/29>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Add a note to the readme file to clarify that the default build system is still
automake.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
AM_CPPFLAGS defines several symbols that do not have to be there. By providing
default values in twm.h, this list can be reduced in size while still allowing
to override these values.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
These files define only a single variable that is used in only one place.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
The logic to generate deftwmrc.c is currently split between Makefile.am and
deftwmrc.sed. Consolidate into a single script.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Provide declaration of yyparse(), and alternate declaration of yylex().
This works with bison and byacc, as well as different versions of flex.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Replace the extern declaration of yylex() in gram.y with a
definition/use in parse.h, improving portability.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
A recent change removed the declaration of yylineno from lex.l,
making the program depend on the version of flex.
Restore the declaration with an ifdef.
Also, remove unused declaration in parse.c
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
all of the users of (generated) gram.h rely upon (custom) parse.h,
and the order of those headers affects portability.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Still valid c, but now also valid c++.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'new' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'class' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'class' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'class' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'class' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'delete' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'register' is an optimization hint to the compiler that is generally
not necessary and needlessly prevents using a c++ compiler to compile
twm.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Preparation for the removal of FirstScreen: Separate code that is
executed for all screens from code that is executed for only the
first screen.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Support for xprint was removed in commit 0ce52bc9ed.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
This silences all "function might be candidate for attribute 'noreturn'"
warnings. Add to HandleEvent as well, as that function never returns.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
This silences all "function '...' might be a candidate for 'gnu_printf'
format attribute" warnings.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yylex is already declared in (the generated) lex.c. This silences
a "redundant redeclaration of 'yylex'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yyparse is already declared in (the generated) gram.h. This silences
a "redundant redeclaration of 'yyparse'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yylineno is already declared in (the generated) gram.h. This silences
a "redundant redeclaration of 'yylineno'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Silence some "initialization discards 'const' qualifier from pointer
target type" warnings.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
The variable `n` is written to every iteration of the loop, but never
read. It is overwritten (and read) in the next loop though. Remove the
dead store.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
xprint is deprecated and was removed from xorg in 2008.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|