mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] Detecting missing null pointer checks after memory allocations
@ 2025-11-01 12:42 Markus Elfring
  2025-11-03  6:33 ` Markus Elfring
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2025-11-01 12:42 UTC (permalink / raw)
  To: cocci, kernel-janitors; +Cc: LKML, linux-fsdevel, linux-xfs

Hello,

I got into the mood to try another simple source code search out which
can be achieved also by the means of the semantic patch language.

@display@
expression size, source, target;
@@
 target =
(
*kmalloc
|
*vmalloc
|
*malloc
)(...);
 memcpy(target, source, size);


It can be determined then from the generated diff file that mentioned
implementation details can be found at 11 places (4 source files) of
the software “Linux next-20251031”.
Will such analysis information trigger further collateral evolution?

Regards,
Markus

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-11-03  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-01 12:42 [RFC] Detecting missing null pointer checks after memory allocations Markus Elfring
2025-11-03  6:33 ` Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®