Project

General

Profile

Actions

Bug #20445

closed

Backport 2571d5376a38c333b8fe85f1f9b2f9c2422c0ad9 to ruby_3_3

Added by mame (Yusuke Endoh) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.1 (2024-04-23 revision c56cd86388) [x86_64-linux]
[ruby-core:117652]

Description

Building Ruby 3.3.1 prints the following warning:

regexec.c: In function 'match_at':
regexec.c:2598:59: warning: 'stkp' may be used uninitialized [-Wmaybe-uninitialized]
 2598 |         if (*pbegin == OP_REPEAT_INC) stkp->u.repeat.count--;\
      |                                       ~~~~~~~~~~~~~~~~~~~~^~
regexec.c:3852:11: note: in expansion of macro 'CHECK_MATCH_CACHE'
 3852 |           CHECK_MATCH_CACHE;
      |           ^~~~~~~~~~~~~~~~~
regexec.c:2297:18: note: 'stkp' was declared here
 2297 |   OnigStackType *stkp; /* used as any purpose. */
      |                  ^~~~

2571d5376a38c333b8fe85f1f9b2f9c2422c0ad9 will remove it.

Updated by k0kubun (Takashi Kokubun) about 1 year ago

  • Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: REQUIRED to 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: DONE

Thanks for the ticket. I haven't noticed this ticket, but have already backported that e5a1119f1b4fd93d60540cd4277e61851c3ebe45.

Actions

Also available in: Atom PDF

Like0
Like0