[Asterisk-code-review] test.c: Avoid passing -1 to FD_* family of functions. (asterisk[18])

Sean Bright asteriskteam at digium.com
Mon Feb 27 18:39:11 CST 2023


Sean Bright has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/c/asterisk/+/19933 )

Change subject: test.c: Avoid passing -1 to FD_* family of functions.
......................................................................

test.c: Avoid passing -1 to FD_* family of functions.

This avoids buffer overflow errors when running tests that capture
output from child processes.

This also corrects a copypasta in an off-nominal error message.

Change-Id: Ib482847a3515364f14c7e7a0c0a4213851ddb10d
---
M main/test.c
1 file changed, 21 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/33/19933/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/19933
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 18
Gerrit-Change-Id: Ib482847a3515364f14c7e7a0c0a4213851ddb10d
Gerrit-Change-Number: 19933
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Bright <sean at seanbright.com>
Gerrit-CC: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20230228/868291be/attachment-0001.html>


More information about the asterisk-code-review mailing list