apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60191] libapr computes incorrect size for dirent structure
Date Fri, 30 Sep 2016 20:35:54 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60191

--- Comment #2 from William A. Rowe Jr. <wrowe@apache.org> ---
Why not

-        (sizeof((*new)->entry->d_name) > 1 ? 0 : 255);
+        PATH_MAX+1 - sizeof((*new)->entry->d_name);

to allocate a sufficient d_name space while deducting any redundant bytes 
from the d_name elt?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message