bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#79336: [PATCH] df: fix potential null pointer dereference


From: Paul Eggert
Subject: bug#79336: [PATCH] df: fix potential null pointer dereference
Date: Sat, 30 Aug 2025 10:41:24 -0700
User-agent: Mozilla Thunderbird

On 2025-08-28 18:45, yubiao hu wrote:
* src/df.c (get_dev): Fix potential null pointer dereference
- Avoid dereferencing stat_file when both device and
  mount_point are NULL
- Handle allocation failure for cell when mount_point
  is NULL

Why is this patch needed? Can you give an example df invocation in which mount_point is null there? As far as I can see, that cannot happen.

Did your bug report come from static analysis? If so, which static analyzer did you use and how did you use it? Does the attached patch pacify your static analyzer?


Attachment: 0001-df-pacify-static-analysis.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]