Attention is currently required from: daniel, jolly.
laforge has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/36188?usp=email )
Change subject: osmo_io: Guard osmo_iofd_register() with invalid file descriptor
......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://gerrit.osmocom.org/c/libosmocore/+/36188/comment/3ad11fab_d679c68c
PS1, Line 9: Let's return an error if both osmo_iofd_setup() and osmo_iofd_register()
: are called with an invalid file descriptor like -1.
I see the check for osmo_iofd_register(), but not for
osmo_iofd_setup() in this patch.
at osmo_iofd_setup() time it is legal to pass -1.
Only at osmo_iofd_register() time we can perform a check. Either iofd->fd is already
set from the prior osmo_iofd_setup() call (good) or we have been give a valid fd as
argument (good). But if neither of those two were valid (>= 0) then we have to bail
out here.
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/36188?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ie4561cefad82e1bf5d37dd1a4815f4bc805343e6
Gerrit-Change-Number: 36188
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: jolly <andreas(a)eversberg.eu>
Gerrit-Attention: daniel <dwillmann(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 07 Mar 2024 14:43:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: jolly <andreas(a)eversberg.eu>
Gerrit-MessageType: comment