[Github-comments] [geany/geany-plugins] Splitting a snowman in half crashes Geany with Spell Check (inserting a space before Unicode VARIATION SELECTOR-16) (#1041)

Miro Hrončok notifications at xxxxx
Mon Nov 30 10:40:50 UTC 2020


Hello. I run geany 1.37.1 on Fedora 33 and Geany crashes when I try to put a space between an emoji and Unicode VARIATION SELECTOR-16.

Steps to reproduce:

1. Enable the Spell Check plugin and enable spell checking. I use en_US in case it matters.
2. Insert an emoji with VARIATION SELECTOR-16, e.g. ☃️ (select the entire line form the *source* of this comment or [from here](https://blog.tomayac.com/2019/12/12/same-same-but-different-unicode-variation-selector-16/#the-unicode-variation-selector-16)).
3. Move the cursor between the two characters:
   ![_](https://user-images.githubusercontent.com/2401856/100599500-673d0180-3300-11eb-9cc8-d170ba6ea0d9.png)
4. Type "space" (or any other character it seems).
5. Geany crashes (aborts).

```
/usr/include/c++/10/bits/stl_vector.h:1063: std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) const [with _Tp = unsigned char; _Alloc = std::allocator<unsigned char>; std::vector<_Tp, _Alloc>::const_reference = const unsigned char&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]: Assertion '__builtin_expect(__n < this->size(), true)' failed.
```


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1041
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20201130/8caf7757/attachment.htm>


More information about the Github-comments mailing list