diff
// Hypothetical usage of build_label where the vulnerability might occur
-    read_data_into_buffer(build_label, data_length);
+    if (data_length <= QCA_FW_BUILD_VER_LEN) {
+        read_data_into_buffer(build_label, data_length);
+    }
