* Re: master ee6e4bc525: Update device-specific grab during drag-and-drop
[not found] ` <20220623005406.BF9E6C01682@vcs2.savannah.gnu.org>
@ 2022-08-21 13:03 ` Lars Ingebrigtsen
2022-08-21 13:12 ` Eli Zaretskii
2022-08-21 13:33 ` Po Lu
0 siblings, 2 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-21 13:03 UTC (permalink / raw)
To: Po Lu via Mailing list for Emacs changes; +Cc: Po Lu
Po Lu via Mailing list for Emacs changes <emacs-diffs@gnu.org> writes:
> Update device-specific grab during drag-and-drop
>
> * src/xterm.c (x_detect_focus_change): Fix typo.
> (handle_one_xevent): Set device if DND is in progress and update
> device->grab.
This (or something other change in this area) leads to the following
warnings in an --with-x-toolkit=no build on the current Ubuntu:
xterm.c: In function 'handle_one_xevent':
xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
21537 | device->grab &= ~(1 << xev->detail);
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
21537 | device->grab &= ~(1 << xev->detail);
| ^~
I haven't checked whether it's a correct warning or not.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: master ee6e4bc525: Update device-specific grab during drag-and-drop
2022-08-21 13:03 ` master ee6e4bc525: Update device-specific grab during drag-and-drop Lars Ingebrigtsen
@ 2022-08-21 13:12 ` Eli Zaretskii
2022-08-21 13:15 ` Lars Ingebrigtsen
2022-08-21 13:33 ` Po Lu
1 sibling, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-08-21 13:12 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: emacs-devel, luangruo
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Po Lu <luangruo@yahoo.com>
> Date: Sun, 21 Aug 2022 15:03:10 +0200
>
> Po Lu via Mailing list for Emacs changes <emacs-diffs@gnu.org> writes:
>
> > Update device-specific grab during drag-and-drop
> >
> > * src/xterm.c (x_detect_focus_change): Fix typo.
> > (handle_one_xevent): Set device if DND is in progress and update
> > device->grab.
>
> This (or something other change in this area) leads to the following
> warnings in an --with-x-toolkit=no build on the current Ubuntu:
>
> xterm.c: In function 'handle_one_xevent':
> xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
> 21537 | device->grab &= ~(1 << xev->detail);
> | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
> 21537 | device->grab &= ~(1 << xev->detail);
> | ^~
I tried to fix this now.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: master ee6e4bc525: Update device-specific grab during drag-and-drop
2022-08-21 13:12 ` Eli Zaretskii
@ 2022-08-21 13:15 ` Lars Ingebrigtsen
0 siblings, 0 replies; 4+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-21 13:15 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel, luangruo
Eli Zaretskii <eliz@gnu.org> writes:
> I tried to fix this now.
Yup; warning gone now.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: master ee6e4bc525: Update device-specific grab during drag-and-drop
2022-08-21 13:03 ` master ee6e4bc525: Update device-specific grab during drag-and-drop Lars Ingebrigtsen
2022-08-21 13:12 ` Eli Zaretskii
@ 2022-08-21 13:33 ` Po Lu
1 sibling, 0 replies; 4+ messages in thread
From: Po Lu @ 2022-08-21 13:33 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: Po Lu via Mailing list for Emacs changes
Lars Ingebrigtsen <larsi@gnus.org> writes:
> This (or something other change in this area) leads to the following
> warnings in an --with-x-toolkit=no build on the current Ubuntu:
>
> xterm.c: In function 'handle_one_xevent':
> xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
> 21537 | device->grab &= ~(1 << xev->detail);
> | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> xterm.c:21537:40: warning: potential null pointer dereference [-Wnull-dereference]
> 21537 | device->grab &= ~(1 << xev->detail);
> | ^~
>
> I haven't checked whether it's a correct warning or not.
I guess it can happen if another bug makes Emacs "forget" devices, but I
fixed all of those at the end of May.
So for consistency I would enclose it with if (device), but I don't
think the NULL dereference can actually happen in reality.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-08-21 13:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <165594564645.17861.9851899361770628544@vcs2.savannah.gnu.org>
[not found] ` <20220623005406.BF9E6C01682@vcs2.savannah.gnu.org>
2022-08-21 13:03 ` master ee6e4bc525: Update device-specific grab during drag-and-drop Lars Ingebrigtsen
2022-08-21 13:12 ` Eli Zaretskii
2022-08-21 13:15 ` Lars Ingebrigtsen
2022-08-21 13:33 ` Po Lu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.