Debian Codegraph @

debian/patches/fix_hardening.patch

raw symbols SCIP
1 Description: fixed hardening errors
2 - supply a dummy format string '%s' for printf()-like functions
3 Author: IOhannes m zmölnig
4 Forwarded: https://sourceforge.net/p/pure-data/svn/17472/
5 Last-Update: 2015-06-02
6 ---
7 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
8 --- pd-unauthorized.orig/audience~.c
9 +++ pd-unauthorized/audience~.c
10 @@ -1038,7 +1038,7 @@
11
12 void audience_tilde_setup(void)
13 {
14 - logpost(NULL, 4, audience_version );
15 + logpost(NULL, 4, "%s", "%s", audience_version );
16 audience_class_tilde = class_new(gensym("audience~"), (t_newmethod)audience_new,
17 (t_method)audience_free, sizeof(t_audience_tilde), 0, A_GIMME, 0);
18 CLASS_MAINSIGNALIN( audience_class_tilde, t_audience_tilde, x_f );
19 --- pd-unauthorized.orig/beatify~.c
20 +++ pd-unauthorized/beatify~.c
21 @@ -171,7 +171,7 @@
22
23 void beatify_tilde_setup(void)
24 {
25 - logpost(NULL, 4, beatify_version );
26 + logpost(NULL, 4, "%s", beatify_version );
27 beatify_class = class_new(gensym("beatify~"), (t_newmethod)beatify_new, 0,
28 sizeof(t_beatify), 0, 0);
29 CLASS_MAINSIGNALIN( beatify_class, t_beatify, x_f );
30 --- pd-unauthorized.orig/blinkenlights.c
31 +++ pd-unauthorized/blinkenlights.c
32 @@ -867,7 +867,7 @@
33
34 void blinkenlights_setup(void)
35 {
36 - logpost(NULL, 4, blinkenlights_version);
37 + logpost(NULL, 4, "%s", blinkenlights_version);
38 blinkenlights_class = class_new(gensym("blinkenlights"), (t_newmethod)blinkenlights_new,
39 (t_method)blinkenlights_free,
40 sizeof(t_blinkenlights), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
41 --- pd-unauthorized.orig/compressor~.c
42 +++ pd-unauthorized/compressor~.c
43 @@ -97,7 +97,7 @@
44
45 void compressor_tilde_setup(void)
46 {
47 - logpost(NULL, 4, compressor_version );
48 + logpost(NULL, 4, "%s", compressor_version );
49 compressor_class = class_new(gensym("compressor~"), (t_newmethod)compressor_new, 0,
50 sizeof(t_compressor), 0, 0);
51 CLASS_MAINSIGNALIN( compressor_class, t_compressor, x_f );
52 --- pd-unauthorized.orig/cooled~.c
53 +++ pd-unauthorized/cooled~.c
54 @@ -1455,7 +1455,7 @@
55
56 void cooled_tilde_setup(void)
57 {
58 - logpost(NULL, 4, cooled_version);
59 + logpost(NULL, 4, "%s", cooled_version);
60 cooled_class = class_new(gensym("cooled~"), (t_newmethod)cooled_new, (t_method)cooled_free,
61 sizeof(t_cooled), 0, A_GIMME, 0);
62
63 --- pd-unauthorized.orig/countund.c
64 +++ pd-unauthorized/countund.c
65 @@ -115,7 +115,7 @@
66
67 void countund_setup(void)
68 {
69 - logpost(NULL, 4, countund_version);
70 + logpost(NULL, 4, "%s", countund_version);
71 countund_class = class_new(gensym("countund"), (t_newmethod)countund_new,
72 (t_method)countund_free,
73 sizeof(t_countund), 0, A_DEFFLOAT, 0);
74 --- pd-unauthorized.orig/disto~.c
75 +++ pd-unauthorized/disto~.c
76 @@ -473,7 +473,7 @@
77
78 void disto_tilde_setup(void)
79 {
80 - logpost(NULL, 4, disto_version );
81 + logpost(NULL, 4, "%s", disto_version );
82 disto_class = class_new(gensym("disto~"), (t_newmethod)disto_new, (t_method)disto_free,
83 sizeof(t_disto), 0, 0);
84
85 --- pd-unauthorized.orig/exciter.c
86 +++ pd-unauthorized/exciter.c
87 @@ -789,7 +789,7 @@
88
89 void exciter_setup(void)
90 {
91 - logpost(NULL, 4, exciter_version );
92 + logpost(NULL, 4, "%s", exciter_version );
93 exciter_class = class_new(gensym("exciter"), (t_newmethod)exciter_new,
94 (t_method)exciter_free, sizeof(t_exciter), 0, A_GIMME, 0);
95 class_addmethod(exciter_class, (t_method)exciter_dialog, gensym("dialog"), A_GIMME, 0);
96 --- pd-unauthorized.orig/filterbank~.c
97 +++ pd-unauthorized/filterbank~.c
98 @@ -653,7 +653,7 @@
99
100 void filterbank_tilde_setup(void)
101 {
102 - logpost(NULL, 4, filterbank_version );
103 + logpost(NULL, 4, "%s", filterbank_version );
104 filterbank_class_tilde = class_new(gensym("filterbank~"), (t_newmethod)filterbank_new,
105 (t_method)filterbank_free, sizeof(t_filterbank_tilde), 0, A_GIMME, 0);
106 CLASS_MAINSIGNALIN( filterbank_class_tilde, t_filterbank_tilde, x_f );
107 --- pd-unauthorized.orig/formant~.c
108 +++ pd-unauthorized/formant~.c
109 @@ -260,7 +260,7 @@
110
111 void formant_tilde_setup(void)
112 {
113 - logpost(NULL, 4, formant_version);
114 + logpost(NULL, 4, "%s", formant_version);
115 formant_class = class_new(gensym("formant~"), (t_newmethod)formant_new, (t_method)formant_free,
116 sizeof(t_formant), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
117 class_addmethod(formant_class, (t_method)formant_dsp, gensym("dsp"), 0);
118 --- pd-unauthorized.orig/grid.c
119 +++ pd-unauthorized/grid.c
120 @@ -690,7 +690,7 @@
121
122 void grid_setup(void)
123 {
124 - logpost(NULL, 4, grid_version );
125 + logpost(NULL, 4, "%s", grid_version );
126 grid_class = class_new(gensym("grid"), (t_newmethod)grid_new,
127 (t_method)grid_free, sizeof(t_grid), 0, A_GIMME, 0);
128 class_addmethod(grid_class, (t_method)grid_click, gensym("click"),
129 --- pd-unauthorized.orig/mp3amp~.c
130 +++ pd-unauthorized/mp3amp~.c
131 @@ -1245,7 +1245,7 @@
132 /* init mpg123 decoder */
133 mp3amp_tilde_mpglib_init(x);
134
135 - logpost(NULL, 4, mp3amp_version);
136 + logpost(NULL, 4, "%s", mp3amp_version);
137
138 return (x);
139 }
140 --- pd-unauthorized.orig/mp3cast~.c
141 +++ pd-unauthorized/mp3cast~.c
142 @@ -368,7 +368,7 @@
143 #endif /* _WIN32 */
144 {
145 const char *lameVersion = get_lame_version();
146 - logpost(NULL, 4, "mp3cast~ : using lame version : %s", lameVersion );
147 + logpost(NULL, 4, "%s", "mp3cast~ : using lame version : %s", lameVersion );
148 }
149
150
151 @@ -810,7 +810,7 @@
152 static void mp3cast_print(t_mp3cast *x)
153 {
154 const char * buf = 0;
155 - logpost(NULL, 4, mp3cast_version);
156 + logpost(NULL, 4, "%s", mp3cast_version);
157 post(" LAME mp3 settings:\n"
158 " output sample rate: %d Hz\n"
159 " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate);
160 @@ -972,7 +972,7 @@
161
162 void mp3cast_tilde_setup(void)
163 {
164 - logpost(NULL, 4, mp3cast_version);
165 + logpost(NULL, 4, "%s", mp3cast_version);
166 mp3cast_class = class_new(gensym("mp3cast~"), (t_newmethod)mp3cast_new, (t_method)mp3cast_free,
167 sizeof(t_mp3cast), 0, 0);
168 CLASS_MAINSIGNALIN(mp3cast_class, t_mp3cast, x_f );
169 --- pd-unauthorized.orig/mp3fileout~.c
170 +++ pd-unauthorized/mp3fileout~.c
171 @@ -549,7 +549,7 @@
172
173 void mp3fileout_tilde_setup(void)
174 {
175 - logpost(NULL, 4, mp3fileout_version );
176 + logpost(NULL, 4, "%s", mp3fileout_version );
177 mp3fileout_class = class_new(gensym("mp3fileout~"),
178 (t_newmethod) mp3fileout_new, (t_method) mp3fileout_free,
179 sizeof(t_mp3fileout), 0, A_NULL);
180 --- pd-unauthorized.orig/mp3streamin~.c
181 +++ pd-unauthorized/mp3streamin~.c
182 @@ -669,7 +669,7 @@
183
184 void mp3streamin_tilde_setup(void)
185 {
186 - logpost(NULL, 4, mp3streamin_version );
187 + logpost(NULL, 4, "%s", mp3streamin_version );
188 mp3streamin_class = class_new(gensym("mp3streamin~"),
189 (t_newmethod) mp3streamin_new, (t_method) mp3streamin_free,
190 sizeof(t_mp3streamin), CLASS_NOINLET, A_DEFFLOAT, A_DEFFLOAT, A_NULL);
191 --- pd-unauthorized.orig/mp3streamout~.c
192 +++ pd-unauthorized/mp3streamout~.c
193 @@ -376,7 +376,7 @@
194 #endif
195 {
196 const char *lameVersion = get_lame_version();
197 - logpost(NULL, 4, "mp3streamout~ : using lame version : %s", lameVersion );
198 + logpost(NULL, 4, "%s", "mp3streamout~ : using lame version : %s", lameVersion );
199 }
200
201 /* setting lame parameters */
202 @@ -550,7 +550,7 @@
203 {
204 const char * buf = 0;
205
206 - logpost(NULL, 4, mp3streamout_version);
207 + logpost(NULL, 4, "%s", mp3streamout_version);
208 post(" LAME mp3 settings:\n"
209 " output sample rate: %d Hz\n"
210 " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate);
211 @@ -629,7 +629,7 @@
212
213 void mp3streamout_tilde_setup(void)
214 {
215 - logpost(NULL, 4, mp3streamout_version);
216 + logpost(NULL, 4, "%s", mp3streamout_version);
217 mp3streamout_class = class_new(gensym("mp3streamout~"), (t_newmethod)mp3streamout_new, (t_method)mp3streamout_free,
218 sizeof(t_mp3streamout), 0, 0);
219 CLASS_MAINSIGNALIN(mp3streamout_class, t_mp3streamout, x_f );
220 --- pd-unauthorized.orig/mp3write~.c
221 +++ pd-unauthorized/mp3write~.c
222 @@ -369,7 +369,7 @@
223 #endif
224 {
225 const char *lameVersion = get_lame_version();
226 - logpost(NULL, 4, "mp3write~ : using lame version : %s", lameVersion );
227 + logpost(NULL, 4, "%s", "mp3write~ : using lame version : %s", lameVersion );
228 }
229
230 /* setting lame parameters */
231 @@ -495,7 +495,7 @@
232 static void mp3write_print(t_mp3write *x)
233 {
234 const char * buf = 0;
235 - logpost(NULL, 4, mp3write_version);
236 + logpost(NULL, 4, "%s", mp3write_version);
237 post(" LAME mp3 settings:\n"
238 " output sample rate: %d Hz\n"
239 " bitrate: %d kbit/s", x->x_samplerate, x->x_bitrate);
240 @@ -627,7 +627,7 @@
241
242 void mp3write_tilde_setup(void)
243 {
244 - logpost(NULL, 4, mp3write_version);
245 + logpost(NULL, 4, "%s", mp3write_version);
246 mp3write_class = class_new(gensym("mp3write~"), (t_newmethod)mp3write_new, (t_method)mp3write_free,
247 sizeof(t_mp3write), 0, 0);
248 CLASS_MAINSIGNALIN(mp3write_class, t_mp3write, x_f );
249 --- pd-unauthorized.orig/pianoroll.c
250 +++ pd-unauthorized/pianoroll.c
251 @@ -793,7 +793,7 @@
252
253 void pianoroll_setup(void)
254 {
255 - logpost(NULL, 4, pianoroll_version );
256 + logpost(NULL, 4, "%s", pianoroll_version );
257 pianoroll_class = class_new(gensym("pianoroll"), (t_newmethod)pianoroll_new,
258 (t_method)pianoroll_free, sizeof(t_pianoroll), 0, A_GIMME, 0);
259 class_addmethod(pianoroll_class, (t_method)pianoroll_float, &s_float, A_FLOAT, 0);
260 --- pd-unauthorized.orig/probalizer.c
261 +++ pd-unauthorized/probalizer.c
262 @@ -676,7 +676,7 @@
263
264 void probalizer_setup(void)
265 {
266 - logpost(NULL, 4, probalizer_version );
267 + logpost(NULL, 4, "%s", probalizer_version );
268 probalizer_class = class_new(gensym("probalizer"), (t_newmethod)probalizer_new,
269 (t_method)probalizer_free, sizeof(t_probalizer), 0, A_GIMME, 0);
270 class_addmethod(probalizer_class, (t_method)probalizer_dialog, gensym("dialog"), A_GIMME, 0);
271 --- pd-unauthorized.orig/randomblock~.c
272 +++ pd-unauthorized/randomblock~.c
273 @@ -111,7 +111,7 @@
274
275 void randomblock_tilde_setup(void)
276 {
277 - logpost(NULL, 4, randomblock_version);
278 + logpost(NULL, 4, "%s", randomblock_version);
279 randomblock_class = class_new(gensym("randomblock~"), (t_newmethod)randomblock_new,
280 (t_method)randomblock_free,
281 sizeof(t_randomblock), 0, A_DEFFLOAT, 0);
282 --- pd-unauthorized.orig/samplebox~.c
283 +++ pd-unauthorized/samplebox~.c
284 @@ -579,7 +579,7 @@
285
286 void samplebox_tilde_setup(void)
287 {
288 - logpost(NULL, 4, samplebox_version);
289 + logpost(NULL, 4, "%s", samplebox_version);
290 samplebox_class = class_new(gensym("samplebox~"), (t_newmethod)samplebox_new, (t_method)samplebox_free,
291 sizeof(t_samplebox), 0, A_DEFFLOAT, 0);
292 CLASS_MAINSIGNALIN( samplebox_class, t_samplebox, x_f );
293 --- pd-unauthorized.orig/scratcher~.c
294 +++ pd-unauthorized/scratcher~.c
295 @@ -805,7 +805,7 @@
296
297 void scratcher_tilde_setup(void)
298 {
299 - logpost(NULL, 4, scratcher_version);
300 + logpost(NULL, 4, "%s", scratcher_version);
301 scratcher_class = class_new(gensym("scratcher~"), (t_newmethod)scratcher_new, (t_method)scratcher_free,
302 sizeof(t_scratcher), 0, A_GIMME, 0);
303
304 --- pd-unauthorized.orig/scrolllist.c
305 +++ pd-unauthorized/scrolllist.c
306 @@ -1000,7 +1000,7 @@
307
308 void scrolllist_setup(void)
309 {
310 - logpost(NULL, 4, scrolllist_version );
311 + logpost(NULL, 4, "%s", scrolllist_version );
312 scrolllist_class = class_new(gensym("scrolllist"), (t_newmethod)scrolllist_new,
313 (t_method)scrolllist_free, sizeof(t_scrolllist),
314 CLASS_DEFAULT, A_GIMME, 0);
315 --- pd-unauthorized.orig/sonogram~.c
316 +++ pd-unauthorized/sonogram~.c
317 @@ -2251,7 +2251,7 @@
318
319 void sonogram_tilde_setup(void)
320 {
321 - logpost(NULL, 4, sonogram_version);
322 + logpost(NULL, 4, "%s", sonogram_version);
323 sonogram_class = class_new(gensym("sonogram~"), (t_newmethod)sonogram_new, (t_method)sonogram_free,
324 sizeof(t_sonogram), 0, A_DEFFLOAT, A_DEFFLOAT, A_DEFFLOAT, 0);
325
326 --- pd-unauthorized.orig/speexin~.c
327 +++ pd-unauthorized/speexin~.c
328 @@ -608,7 +608,7 @@
329
330 void speexin_tilde_setup(void)
331 {
332 - logpost(NULL, 4, speexin_version );
333 + logpost(NULL, 4, "%s", speexin_version );
334 speexin_class = class_new(gensym("speexin~"),
335 (t_newmethod) speexin_new, (t_method) speexin_free,
336 sizeof(t_speexin), CLASS_NOINLET, A_DEFFLOAT, A_DEFFLOAT, A_NULL);
337 --- pd-unauthorized.orig/speexout~.c
338 +++ pd-unauthorized/speexout~.c
339 @@ -444,7 +444,7 @@
340
341 void speexout_tilde_setup(void)
342 {
343 - logpost(NULL, 4, speexout_version);
344 + logpost(NULL, 4, "%s", speexout_version);
345 speexout_class = class_new(gensym("speexout~"), (t_newmethod)speexout_new, (t_method)speexout_free,
346 sizeof(t_speexout), 0, A_GIMME, 0);
347 CLASS_MAINSIGNALIN(speexout_class, t_speexout, x_f );
348 --- pd-unauthorized.orig/spigot~.c
349 +++ pd-unauthorized/spigot~.c
350 @@ -71,7 +71,7 @@
351
352 void spigot_tilde_setup(void)
353 {
354 - logpost(NULL, 4, spigot_version );
355 + logpost(NULL, 4, "%s", spigot_version );
356 spigot_class = class_new(gensym("spigot~"), (t_newmethod)spigot_new, 0,
357 sizeof(t_spigot), 0, 0);
358 CLASS_MAINSIGNALIN( spigot_class, t_spigot, x_f );
359 --- pd-unauthorized.orig/wahwah~.c
360 +++ pd-unauthorized/wahwah~.c
361 @@ -393,7 +393,7 @@
362
363 void wahwah_tilde_setup(void)
364 {
365 - logpost(NULL, 4, wahwah_version );
366 + logpost(NULL, 4, "%s", wahwah_version );
367 wahwah_class = class_new(gensym("wahwah~"), (t_newmethod)wahwah_new, (t_method)wahwah_free,
368 sizeof(t_wahwah), 0, 0);
369