• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Pipewireパッケージ(ちょっと変更)


Commit MetaInfo

Revisiónb3f8df6dfc8e5ed97a6d4df4166b75e108f0545d (tree)
Tiempo2023-10-11 20:34:18
AutorWim Taymans <wtaymans@redh...>
CommiterWim Taymans

Log Message

pw-cat: don't overrun our param array

Cambiar Resumen

Diferencia incremental

--- a/src/tools/pw-cat.c
+++ b/src/tools/pw-cat.c
@@ -1977,7 +1977,8 @@ int main(int argc, char *argv[])
19771977 uint32_t i, n_items = 0;
19781978
19791979 for (i = 0; i < data.props->dict.n_items; i++) {
1980- if (spa_strstartswith(data.props->dict.items[i].key, "media."))
1980+ if (n_items < SPA_N_ELEMENTS(items) &&
1981+ spa_strstartswith(data.props->dict.items[i].key, "media."))
19811982 items[n_items++] = data.props->dict.items[i];
19821983 }
19831984 if (n_items > 0) {