Change in osmo-bsc[master]: prevent a NULL pointer dereference in debug_candidate()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Nov 7 19:15:55 UTC 2018


Neels Hofmeyr has posted comments on this change. ( https://gerrit.osmocom.org/11630 )

Change subject: prevent a NULL pointer dereference in debug_candidate()
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

https://gerrit.osmocom.org/#/c/11630/1/src/osmo-bsc/handover_decision_2.c
File src/osmo-bsc/handover_decision_2.c:

https://gerrit.osmocom.org/#/c/11630/1/src/osmo-bsc/handover_decision_2.c@844
PS1, Line 844: 	}
AFAICT the logic was already sound.

lchan->ts->trx->bts by definition is never NULL, hence we never hit a NULL dereference situation? Where is this coming from, reading code, a coverity warning or actual failure?

(If this remains valid, then rather exit-early like if (!candidate->bts) return;)



-- 
To view, visit https://gerrit.osmocom.org/11630
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ie3d672d835bbc136809e593a819a6dda7c84a88e
Gerrit-Change-Number: 11630
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Comment-Date: Wed, 07 Nov 2018 19:15:55 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181107/55022cff/attachment.htm>


More information about the gerrit-log mailing list