[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250622184815.GW1880847@ZenIV>
Date: Sun, 22 Jun 2025 19:48:15 +0100
From: Al Viro <viro@...iv.linux.org.uk>
To: Amir Mohammad Jahangirzad <a.jahangirzad@...il.com>
Cc: hubcap@...ibond.com, martin@...ibond.com, devel@...ts.orangefs.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs/orangefs: use snprintf() instead of sprintf()
On Sun, Jun 22, 2025 at 10:09:58PM +0330, Amir Mohammad Jahangirzad wrote:
> > Replace sprintf() with snprintf() for copying the debug string
> > into a temporary buffer, using ORANGEFS_MAX_DEBUG_STRING_LEN as
> > the maximum size to ensure safe formatting and prevent memory
> > corruption in edge cases.
Out of curiosity - have you actually looked at the format used there?
Powered by blists - more mailing lists