Changeset 591
- Timestamp:
- Oct 31, 2025, 2:49:53 PM (8 hours ago)
- Location:
- trunk/src
- Files:
- 
      - 2 edited
 
 - 
          
  sh_log_evalrule.c (modified) (1 diff)
- 
          
  sh_log_parse_apache.c (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/src/sh_log_evalrule.cr588 r591 1051 1051 sh_string_len(message)); 1052 1052 1053 if (ovecnum > 1 )1053 if (ovecnum > 1 && (ovector[0] < ovector[1])) /* guard against patterns using \K */ 1054 1054 { 1055 1055 retval = sh_string_replace(retval, &(ovector[2]), (ovecnum-1), "___", 3); 
- 
      trunk/src/sh_log_parse_apache.cr588 r591 341 341 342 342 info->line_ovector = pcre2_get_ovector_pointer(match_data); 343 344 if (info->line_ovector[0] > info->line_ovector[1]) /* guard against patterns using \K */ 345 { 346 char msg[128]; 347 sl_snprintf(msg, sizeof(msg), _("Matching error: start > end")); 348 349 SH_MUTEX_LOCK(mutex_thread_nolog); 350 sh_error_handle(SH_ERR_ERR, FIL__, __LINE__, 0, MSG_E_SUBGEN, 351 msg, 352 _("sh_parse_apache")); 353 SH_MUTEX_UNLOCK(mutex_thread_nolog); 354 goto the_end; 355 } 343 356 344 357 if (info->pos_time > 0) … … 450 463 sh_string_destroy(&msg); 451 464 } 465 466 the_end: 452 467 pcre2_match_data_free(match_data); 453 468 return NULL; 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
