• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

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

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


Commit MetaInfo

Révisiondcad1243a8aade7698817a83d9f22b7e49becb2c (tree)
l'heure2023-10-06 15:50:22
AuteurWim Taymans <wtaymans@redh...>
CommiterWim Taymans

Message de Log

pw-cli: avoid NULL deref

info can be NULL so use the update instead.

Change Summary

Modification

--- a/src/tools/pw-cli.c
+++ b/src/tools/pw-cli.c
@@ -1031,7 +1031,7 @@ static void session_event_info(void *data,
10311031 }
10321032 }
10331033 if (pd->global == NULL)
1034- pd->global = pw_map_lookup(&rd->globals, info->id);
1034+ pd->global = pw_map_lookup(&rd->globals, update->id);
10351035 if (pd->global && pd->global->info_pending) {
10361036 info_session(pd);
10371037 pd->global->info_pending = false;
@@ -1087,7 +1087,7 @@ static void endpoint_event_info(void *data,
10871087 }
10881088 }
10891089 if (pd->global == NULL)
1090- pd->global = pw_map_lookup(&rd->globals, info->id);
1090+ pd->global = pw_map_lookup(&rd->globals, update->id);
10911091 if (pd->global && pd->global->info_pending) {
10921092 info_endpoint(pd);
10931093 pd->global->info_pending = false;
@@ -1136,7 +1136,7 @@ static void endpoint_stream_event_info(void *data,
11361136 }
11371137 }
11381138 if (pd->global == NULL)
1139- pd->global = pw_map_lookup(&rd->globals, info->id);
1139+ pd->global = pw_map_lookup(&rd->globals, update->id);
11401140 if (pd->global && pd->global->info_pending) {
11411141 info_endpoint_stream(pd);
11421142 pd->global->info_pending = false;