Re: [Openlte-discuss] Undefined Behavior in liblte/liblte_mme.cc
An open source 3GPP LTE implementation.
Status: Alpha
Brought to you by:
bwojtowi
|
From: Ben W. <bwo...@gm...> - 2015-09-05 20:54:38
|
Damian, Thanks for reporting this bug! A fix for it will be included in the next release. Thanks, Ben 2015-08-24 8:04 GMT-07:00 Damian Jarek <dam...@ti...>: > In function liblte_mme_pack_access_point_name_ie() at line 3727: > > (*ie_ptr)[1+apn_idx+1] = (uint8)apn_str[apn_idx++]; > > undefined behavior is triggered by the evaluation of the subexpression > apn_idx++, because the variable apn_idx is also used on the left side of > the assignment operator. > > -- > > *Pozdrawiam / Best regards, * > > *Damian Jarek, Junior Software Engineer* > > *Tieto Poland Sp. z o.o.* > > Swobodna 1, 50-088 Wroclaw, Poland, www.tieto.com > > *Tieto Poland spółka z ograniczoną odpowiedzialnością z siedzibą w > Szczecinie, ul. Malczewskiego 26. Zarejestrowana w Sądzie Rejonowym > Szczecin-Centrum w Szczecinie, XIII Wydział Gospodarczy Krajowego Rejestru > Sądowego pod numerem 0000124858. NIP: 8542085557. REGON: 812023656. Kapitał > zakładowy: 4 271500 PLN* > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Openlte-discuss mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openlte-discuss > > |