Attention is currently required from: fixeria, laforge, lynxis lazus, pespin.

Hello Jenkins Builder, fixeria, laforge, lynxis lazus,

I'd like you to reexamine a change. Please visit

    https://gerrit.osmocom.org/c/osmo-sgsn/+/43968?usp=email

to look at the new patch set (#2).

The following approvals got outdated and were removed:
Code-Review+1 by laforge, Code-Review+2 by fixeria, Verified+1 by Jenkins 
Builder

The change is no longer submittable: Code-Review and Verified are unsatisfied 
now.


Change subject: gprs_sndcp_xid: double check buffer size after writing SAPIs
......................................................................

gprs_sndcp_xid: double check buffer size after writing SAPIs

The function encode_pcomp_applicable_sapis writes the applicable
SAPIs to the output buffer. For this it requires 2 bytes. After
that, each encoder function writes the remaining information to
the buffer. The check at the beginning of each encoder function
is sufficient to ensure that the buffer is large enough.

However, this remains only true in case the number of bytes
that encode_pcomp_applicable_sapis writes is 2. If there are
changes to the spec or similar, the function might write more
than 2 bytes. So let's place an additional length check to be
on the secure side.

Change-Id: I059c903885e21215ad1e6b835f34db2c5f70d87a
Related: OS#7095
---
M src/sgsn/gprs_sndcp_xid.c
1 file changed, 20 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/68/43968/2
--
To view, visit https://gerrit.osmocom.org/c/osmo-sgsn/+/43968?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I059c903885e21215ad1e6b835f34db2c5f70d87a
Gerrit-Change-Number: 43968
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: lynxis lazus <[email protected]>
Gerrit-CC: pespin <[email protected]>
Gerrit-Attention: laforge <[email protected]>
Gerrit-Attention: fixeria <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Attention: lynxis lazus <[email protected]>

Reply via email to