From 7dccfe6005b9a61970fc204c8b6109490f518e39 Mon Sep 17 00:00:00 2001 From: DevmateRemedimateLionhead Bot Date: Tue, 17 Mar 2026 00:33:02 -0700 Subject: [PATCH] deadly-signal in CNODE_getLocalParams (#522) Summary: Pull Request resolved: https://github.com/facebook/openzl/pull/522 Differential Revision: D96441304 --- tests/registry/components/DivideBy.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/registry/components/DivideBy.cpp b/tests/registry/components/DivideBy.cpp index 481532f4b..6f9f0a7a7 100644 --- a/tests/registry/components/DivideBy.cpp +++ b/tests/registry/components/DivideBy.cpp @@ -57,7 +57,10 @@ class DivideByComponent : public OpenZLComponent { uint64_t getDivisor(const Compressor& compressor, GraphID graph) const { - auto node = ZL_Compressor_Graph_getHeadNode(compressor.get(), graph); + auto node = ZL_Compressor_Graph_getHeadNode(compressor.get(), graph); + if (!ZL_NodeID_isValid(node)) { + throw std::runtime_error("Failed to get head node"); + } auto params = ZL_Compressor_Node_getLocalParams(compressor.get(), node); if (params.copyParams.nbCopyParams == 0) { // Use GCD => any values are okay