File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -343,19 +343,18 @@ static void nr_scope_hashmap_destroy_internal(nr_scope_hashmap_t** hashmap_ptr)
343
343
nr_func_hashmap_t * global_funcs_ht = NULL ;
344
344
nr_scope_hashmap_t * scope_ht = NULL ;
345
345
346
+ /* This function expects full_name and full_name_len to be validated with
347
+ * nr_php_user_instrument_is_name_valid() before being passed in.
348
+ * Specifically, it requires that:
349
+ * - full_name_len be greater than 0
350
+ * - full_name must not be NULL and must not end with `:` (colon) . */
351
+
346
352
static void nr_php_user_instrument_wraprec_hashmap_name2keys (
347
353
nr_func_hashmap_key_t * func ,
348
354
nr_scope_hashmap_key_t * scope ,
349
355
const char * full_name ,
350
356
int full_name_len ) {
351
357
352
- if (nrunlikely (NULL == full_name )) {
353
- return ;
354
- }
355
- if (nrunlikely (full_name_len <= 0 )) {
356
- return ;
357
- }
358
-
359
358
func -> name = full_name ;
360
359
func -> name_len = full_name_len ;
361
360
func -> name_hash = 0 ;
You can’t perform that action at this time.
0 commit comments