osmith has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hlr/+/14933 )

Change subject: db_auc.c: verify hex key sizes read from DB
......................................................................


Patch Set 1:

(2 comments)

https://gerrit.osmocom.org/#/c/14933/1/src/db_auc.c
File src/db_auc.c:

https://gerrit.osmocom.org/#/c/14933/1/src/db_auc.c@78
PS1, Line 78: int hexparse_stmt(void *dst, sqlite3_stmt *stmt, int col, const 
char *col_name, const char *imsi, int len_dst) {
> > Please put dst next-to len-dst (if I understand correct len_dst is the 
> > buffer size of dst). […]
All review points addressed. Thanks!


https://gerrit.osmocom.org/#/c/14933/1/src/db_auc.c@82
PS1, Line 82:   len_col = sqlite3_column_bytes(stmt, col) / 2;
> Probably because we're reading a 'hexstring', where e.g. […]
Exactly. I've added a comment to clarify this.



--
To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/14933
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: Ib8e8e9394fb65c6e7932ce9f8bebc321b99f7696
Gerrit-Change-Number: 14933
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-CC: fixeria <[email protected]>
Gerrit-Comment-Date: Thu, 25 Jul 2019 12:45:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <[email protected]>
Comment-In-Reply-To: pespin <[email protected]>
Gerrit-MessageType: comment

Reply via email to