A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1857 ====================================================================== Reported By: dannyniu Assigned To: ====================================================================== Project: 1003.1(2024)/Issue8 Issue ID: 1857 Category: Base Definitions and Headers Tags: tc1-2024 Type: Error Severity: Objection Priority: normal Status: Interpretation Required Name: DannyNiu/NJF Organization: Individual User Reference: Section: 9.1 Regular Expression Definitions # and others. Page Number: 179-180 and others Line Number: 6366-6368 and others. Interp Status: Approved Final Accepted Text: https://www.austingroupbugs.net/view.php?id=1857#c6919 ====================================================================== Date Submitted: 2024-09-14 12:54 UTC Last Modified: 2025-03-06 14:26 UTC ====================================================================== Summary: Several problems with the new "lazy" regex quantifier. ====================================================================== Relationships ID Summary ---------------------------------------------------------------------- related to 0001877 ISO editors Issue 8 comment 068 ======================================================================
---------------------------------------------------------------------- (0007094) geoffclare (manager) - 2025-03-06 14:26 https://www.austingroupbugs.net/view.php?id=1857#c7094 ---------------------------------------------------------------------- Re https://www.austingroupbugs.net/view.php?id=1857#c7091 The macOS behaviour matches my analysis. Looks like a case where Apple fixed a TRE bug. Code:<pre> #include <regex.h> #include <stdio.h> int main() { int ret = 100; static regex_t preg; static regmatch_t matches[16]; ret = regcomp(&preg, "[0-9](((((([0-9][a-z]+[0-9])+?)+)+?)+)+?)+[0-9]", REG_EXTENDED|REG_ENHANCED); printf("regcomp returned: %d\n", ret); ret = regexec(&preg, "12abc34def56ghi78jkl90mnop12qrst34uvw56xyz78", 16, matches, 0); printf("regexec returned: %d\n", ret); for(int i=0; i<16; i++) printf("%ld\t%ld\n", (long)matches[i].rm_so, (long)matches[i].rm_eo); regfree(&preg); return 0; } </pre> Output:<pre> regcomp returned: 0 regexec returned: 0 0 7 1 6 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 </pre> Issue History Date Modified Username Field Change ====================================================================== 2024-09-14 12:54 dannyniu New Issue 2024-09-14 12:54 dannyniu Name => DannyNiu/NJF 2024-09-14 12:54 dannyniu Organization => Individual 2024-09-14 12:54 dannyniu Section => 9.1 Regular Expression Definitions # and others. 2024-09-14 12:54 dannyniu Page Number => 179-180 and others 2024-09-14 12:54 dannyniu Line Number => 6366-6368 and others. 2024-09-20 08:05 dannyniu Note Added: 0006879 2024-09-20 08:07 dannyniu Note Edited: 0006879 2024-09-20 08:13 dannyniu Note Edited: 0006879 2024-09-23 08:56 geoffclare Note Added: 0006880 2024-09-24 10:46 geoffclare Note Added: 0006881 2024-09-24 10:46 geoffclare Note Edited: 0006881 2024-09-24 11:54 dannyniu Note Added: 0006882 2024-09-24 12:08 dannyniu Note Edited: 0006882 2024-09-24 12:09 dannyniu Note Edited: 0006882 2024-09-24 12:11 dannyniu Note Edited: 0006882 2024-09-24 12:12 dannyniu Note Edited: 0006882 2024-09-24 14:04 geoffclare Note Added: 0006883 2024-09-25 08:28 dannyniu Note Added: 0006884 2024-09-25 08:30 dannyniu Note Edited: 0006884 2024-09-25 08:33 dannyniu Note Edited: 0006884 2024-09-25 08:42 dannyniu Note Edited: 0006884 2024-09-25 08:43 dannyniu Note Edited: 0006884 2024-09-25 11:36 dannyniu Note Edited: 0006884 2024-09-25 13:17 geoffclare Note Added: 0006885 2024-09-25 15:08 dannyniu Note Added: 0006886 2024-09-25 15:17 dannyniu Note Edited: 0006886 2024-09-25 15:23 dannyniu Note Edited: 0006886 2024-09-25 15:27 dannyniu Note Edited: 0006886 2024-09-25 22:10 steffen Note Added: 0006887 2024-09-25 22:33 steffen Note Added: 0006888 2024-09-25 22:36 steffen Note Added: 0006889 2024-09-26 04:02 dannyniu Note Edited: 0006886 2024-09-26 06:50 dannyniu Note Edited: 0006886 2024-09-26 08:41 geoffclare Note Added: 0006890 2024-09-26 11:43 dannyniu Note Added: 0006891 2024-09-26 11:50 dannyniu Note Edited: 0006891 2024-09-26 12:16 geoffclare Note Added: 0006892 2024-09-26 12:17 geoffclare Note Edited: 0006892 2024-09-26 13:27 geoffclare Note Edited: 0006881 2024-09-26 13:28 geoffclare Note Edited: 0006881 2024-09-26 13:30 geoffclare Note Edited: 0006892 2024-09-27 07:09 geoffclare Note Edited: 0006885 2024-09-27 11:34 dannyniu Note Added: 0006896 2024-09-27 11:37 dannyniu Note Edited: 0006896 2024-09-27 15:51 steffen Note Added: 0006897 2024-09-30 09:26 geoffclare Note Added: 0006898 2024-10-02 02:07 dannyniu Note Added: 0006899 2024-10-03 09:12 geoffclare Note Added: 0006900 2024-10-03 09:14 geoffclare Note Edited: 0006900 2024-10-03 09:15 geoffclare Note Edited: 0006900 2024-10-17 15:24 geoffclare Note Added: 0006919 2024-10-17 15:25 geoffclare Interp Status => Pending 2024-10-17 15:25 geoffclare Final Accepted Text => https://www.austingroupbugs.net/view.php?id=1857#c6919 2024-10-17 15:25 geoffclare Status New => Interpretation Required 2024-10-17 15:25 geoffclare Resolution Open => Accepted As Marked 2024-10-17 15:26 geoffclare Tag Attached: tc1-2024 2024-10-17 16:22 agadmin Interp Status Pending => Proposed 2024-10-17 16:22 agadmin Note Added: 0006920 2024-11-19 11:53 agadmin Interp Status Proposed => Approved 2024-11-19 11:53 agadmin Note Added: 0006963 2024-11-19 12:11 geoffclare Relationship added related to 0001877 2024-12-01 12:43 dannyniu Note Added: 0006979 2024-12-03 15:11 geoffclare Note Added: 0006982 2024-12-25 14:40 dannyniu Note Added: 0007033 2025-02-27 05:18 dannyniu Note Added: 0007087 2025-03-04 14:56 dannyniu Note Added: 0007090 2025-03-05 11:43 dannyniu Note Added: 0007091 2025-03-06 14:26 geoffclare Note Added: 0007094 ======================================================================
