FreeCalypso > hg > fc-magnetite
annotate scripts/cfg-template @ 516:1ed9de6c90bd
src/g23m-gsm/sms/sms_for.c: bogus malloc removed
The new error handling code that was not present in TCS211 blob version
contains a malloc call that is bogus for 3 reasons:
1) The memory allocation in question is not needed in the first place;
2) libc malloc is used instead of one of the firmware's proper ways;
3) The memory allocation is made inside a function and then never freed,
i.e., a memory leak.
This bug was caught in gcc-built FreeCalypso fw projects (Citrine
and Selenite) because our gcc environment does not allow any use of
libc malloc (any reference to malloc produces a link failure),
but this code from TCS3.2 is wrong even for Magnetite: if this code
path is executed repeatedly over a long time, the many small allocations
made by this malloc call without a subsequent free will eventually
exhaust the malloc heap provided by the TMS470 environment, malloc will
start returning NULL, and the bogus code will treat it as an error.
Because the memory allocation in question is not needed at all,
the fix entails simply removing it.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 22 Jul 2018 06:04:49 +0000 |
parents | 3d772a6268c4 |
children | 8cf3029429f3 |
rev | line source |
---|---|
387
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 [board.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 BOARD 41 |
451
fd1d9063ad40
config mechanism: added ability to build D-Sample B&W UI configuration
Mychaela Falconia <falcon@freecalypso.org>
parents:
387
diff
changeset
|
4 DSAMPLE_FULL_COLOR var |
387
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 [chipset.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 ANLG_FAM 2 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 ANLG_PG 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 CHIPSET var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 [debug.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 TI_NUC_MONITOR 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 TI_PROFILER 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 [dio.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 DIOIL_CONFIG 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 [ffs.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 TARGET 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 _RVF 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 [l1sw.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 AMR var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 CUST 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 DCO_ALGO 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 IDS var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 L1_12NEIGH 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 L1_EOTD 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 L1_EOTD_QBIT_ACC 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 L1_GPRS var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 L1_GTT 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 L1_MIDI 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 L1_VOICE_MEMO_AMR var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 MELODY_E2 var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 OP_L1_STANDALONE 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 OP_RIV_AUDIO 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 ORDER2_TX_TEMP_CAL 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 RAZ_VULSWITCH_REGAUDIO 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 SECURITY 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 SPEECH_RECO var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 TESTMODE 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 TRACE_TYPE 4 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 VCXO_ALGO 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 [r2d.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 R2D_ASM 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 R2D_LCD_TEST 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 [rf.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 RF var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 RF_FAM var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 RF_PA var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 RF_PG var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 [rv.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 RVTOOL 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 TEST 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 _GSM 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 [swconfig.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 ALR 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 BT 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 DP 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 DWNLD 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 GSMLITE 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 L1_DYN_DSP_DWNLD var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 LONG_JUMP 3 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 MOVE_IN_INTERNAL_RAM 1 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 OP_WCP 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 PMODE var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 RVDATA_INTERNALRAM 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 SRVC var |
456
3d772a6268c4
config mechanism: allow TR_BAUD_CONFIG to be set on ./configure.sh line
Mychaela Falconia <falcon@freecalypso.org>
parents:
451
diff
changeset
|
82 TR_BAUD_CONFIG var |
387
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 WCP_PROF 0 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 [sys.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 DSP var |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 STD 6 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 [trace.cfg] |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 LAYER_DBG 0xFFFFFFFF |
a05086335d8e
scripts/cfg-template: template for generating *.cfg files
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 TRACE_LEVEL_FILTER 5 |