Attention is currently required from: pespin.
fixeria has posted comments on this change. (
https://gerrit.osmocom.org/c/libosmocore/+/22543 )
Change subject: gsm_7bit_encode_n(): use regular malloc() instead of calloc()
......................................................................
Patch Set 2:
(1 comment)
File src/gsm/gsm_utils.c:
https://gerrit.osmocom.org/c/libosmocore/+/22543/comment/dd46e343_896a80a9
PS1, Line 332: uint8_t *data = malloc(septet_len + 1);
I was thinking about alloca() too, we already use it
in src/conv.c. […]
I suggest to stay with the heap allocation for now. alloca() is
nice, but it's a more radical change compared to calloc() -> malloc(). I am not
confident enough that using the stack here is does not introduce non-obvious pitfalls.
--
To view, visit
https://gerrit.osmocom.org/c/libosmocore/+/22543
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I6956cbd83b2999dbcf8e2d210134b0a166c33efb
Gerrit-Change-Number: 22543
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Fri, 28 Jan 2022 20:12:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment