From 01d27a9add06c8be0c651feac3120003bc641f46 Mon Sep 17 00:00:00 2001 From: Hanspeter Portner Date: Fri, 10 Nov 2023 19:04:51 +0100 Subject: [PATCH] Fix potential null pointer dereference --- src/vm_ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm_ui.c b/src/vm_ui.c index 7ba64c3..f553026 100644 --- a/src/vm_ui.c +++ b/src/vm_ui.c @@ -1141,7 +1141,7 @@ instantiate(const LV2UI_Descriptor *descriptor, const char *plugin_uri, LV2_UI__scaleFactor); for(LV2_Options_Option *opt = opts; - (opt->key != 0) && (opt->value != NULL); + opt && (opt->key != 0) && (opt->value != NULL); opt++) { if( (opt->key == param_sampleRate) && (opt->type == handle->forge.Float) ) -- 2.38.5