Bruce Momjian <[EMAIL PROTECTED]> writes: > What do people think about using (sizeof(struct passwd) + BUFLEN/2) rather > than BUFLEN for the getpwuid_r size, or (sizeof(struct passwd) + MAXPGPATH*2)? > That would reduce the stack requirements and still be safe, I think.
Why bother? Peter did not say what his closed-source app could tolerate. Without that knowledge you're just flying blind about fixing his problem. I see no reason to risk creating buffer-overflow issues for other people in order to make a maybe-or-maybe-not improvement for one rather broken closed-source app... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]