forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit21fa26b
committed
Improve ispell dictionary's defenses against bad affix files.
Don't crash if an ispell dictionary definition contains flags but notany compound affixes. (This isn't a security issue since only superuserscan install affix files, but still it's a bad thing.)Also, be more careful about detecting whether an affix-file FLAG commandis old-format (ispell) or new-format (myspell/hunspell). And change theerror message about mixed old-format and new-format commands into somethingintelligible.Per bug #11770 from Emre Hasegeli. Back-patch to all supported branches.1 parentac6e875 commit21fa26b
1 file changed
+44
-26
lines changedLines changed: 44 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
525 | 525 |
| |
526 | 526 |
| |
527 | 527 |
| |
| 528 | + | |
| 529 | + | |
| 530 | + | |
528 | 531 |
| |
529 | 532 |
| |
530 | 533 |
| |
| |||
685 | 688 |
| |
686 | 689 |
| |
687 | 690 |
| |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
688 | 695 |
| |
689 | 696 |
| |
690 | 697 |
| |
| |||
763 | 770 |
| |
764 | 771 |
| |
765 | 772 |
| |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 | 773 |
| |
774 | 774 |
| |
775 | 775 |
| |
| |||
785 | 785 |
| |
786 | 786 |
| |
787 | 787 |
| |
788 |
| - | |
789 |
| - | |
790 |
| - | |
791 |
| - | |
792 |
| - | |
793 |
| - | |
794 |
| - | |
795 |
| - | |
796 |
| - | |
797 |
| - | |
798 |
| - | |
799 |
| - | |
800 |
| - | |
801 |
| - | |
802 |
| - | |
803 |
| - | |
804 |
| - | |
805 |
| - | |
806 |
| - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
807 | 805 |
| |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
808 | 812 |
| |
809 | 813 |
| |
810 | 814 |
| |
| |||
818 | 822 |
| |
819 | 823 |
| |
820 | 824 |
| |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
821 | 835 |
| |
822 | 836 |
| |
823 | 837 |
| |
| |||
1436 | 1450 |
| |
1437 | 1451 |
| |
1438 | 1452 |
| |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
1439 | 1457 |
| |
1440 | 1458 |
| |
1441 | 1459 |
| |
|
0 commit comments
Comments
(0)