Skip to content

Commit ae2f9d5

Browse files
committed
Throwing an error if there's a regex_t based affix instead of silently skipping them, which might lead to segfaults and so on (the extension can't handle them properly yet).
1 parent ecab830 commit ae2f9d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shared_ispell.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ AFFIX * copyAffix(AFFIX * affix) {
619619

620620
/*FIXME Need to copy the regex_t properly. But would a plain copy be
621621
* safe tu use by multiple processes at the same time? */
622-
elog(WARNING, "skipping regex_t");
622+
elog(ERROR, "This extension can't handle regex_t affixes yet.");
623623

624624
}
625625

@@ -641,7 +641,7 @@ int sizeAffix(AFFIX * affix) {
641641

642642
/*FIXME Need to copy the regex_t properly. But would a plain copy be
643643
* safe tu use by multiple processes at the same time? */
644-
elog(WARNING, "skipping regex_t");
644+
elog(ERROR, "This extension can't handle regex_t affixes yet.");
645645

646646
}
647647

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy