arakiken / mlterm

Other
147 stars 13 forks source link

mlfc crashes with more than 1024 font faces installed #58

Closed hramrach closed 1 year ago

hramrach commented 1 year ago

mflc always crashes, and I see FcPattern *matches[1024];

fc-list | wc -l
3853

Raising the array size to 4096 fixes the problem.

I considered allocating the match patterns dynamically, there is already a linked list implementation in the baselib.

However, I don't understand the matching logic here.