bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH] fix NFSv4 acl detection on F39


From: Bruno Haible
Subject: Re: [PATCH] fix NFSv4 acl detection on F39
Date: Thu, 04 May 2023 11:36:06 +0200

Ondrej Valousek wrote:
> Well, what if we try to create a decently sized stack buffer (say 256 chars) 
> - in 99% we fit into that buffer (actually I can't image we would ever need 
> more), and if we do not fit into that buffer we just return 1

This would mean, a program behaves incorrectly just because some file name
is particularly long. We don't do such things in GNU. The GNU Coding Standards
[1] are clear about it:

  "Avoid arbitrary limits on the length or number of any data structure,
   including file names, lines, files, and symbols, by allocating all data
   structures dynamically."

Bruno

[1] https://www.gnu.org/prep/standards/html_node/Semantics.html






reply via email to

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