# case folding

Case folding is a Unicode text-processing technique primarily used for caseless comparison of text, such as identifiers in a computer program.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Security advisories: multiple vulnerabilities in Regexp and String case conversion

DevFeed: [Security advisories: multiple vulnerabilities in Regexp and String case conversion](<https://devfeed.tech/articles/security-advisories-multiple-vulnerabilities-in-regexp-and-string-case-conversion-142014.md>)

Original publisher: [Read original article](<https://www.ruby-lang.org/en/news/2026/11/18/multiple-vulnerabilities-in-regexp-and-string/>)

Published: 2026-11-18T22:00:00Z

Content type: news

Language: en

Sources: [Ruby-lang](<https://devfeed.tech/sources/ruby-lang.md>)

Topics: [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>), [heap overflow](<https://devfeed.tech/topics/heap-overflow.md>), [Regular expression](<https://devfeed.tech/topics/regular-expression.md>), [code security](<https://devfeed.tech/topics/code-security.md>), [vulnerability management](<https://devfeed.tech/topics/vulnerability-management.md>), [version](<https://devfeed.tech/topics/version.md>), [case folding](<https://devfeed.tech/topics/case-folding.md>)

Tags: [buffer-overflow](<https://devfeed.tech/tags/buffer-overflow.md>), [case](<https://devfeed.tech/tags/case.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compile](<https://devfeed.tech/tags/compile.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [free](<https://devfeed.tech/tags/free.md>), [heap-buffer-overflow](<https://devfeed.tech/tags/heap-buffer-overflow.md>), [integer-overflow](<https://devfeed.tech/tags/integer-overflow.md>), [matching](<https://devfeed.tech/tags/matching.md>), [memory](<https://devfeed.tech/tags/memory.md>), [memory-corruption](<https://devfeed.tech/tags/memory-corruption.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [regexp](<https://devfeed.tech/tags/regexp.md>), [regular](<https://devfeed.tech/tags/regular.md>), [remote-code-execution](<https://devfeed.tech/tags/remote-code-execution.md>), [security](<https://devfeed.tech/tags/security.md>), [security-advisories](<https://devfeed.tech/tags/security-advisories.md>), [string](<https://devfeed.tech/tags/string.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

The advisory identifies seven vulnerabilities in Ruby's regular expression engine and string case conversion, including buffer overflows, integer overflows, double free, and out-of-bounds reads. Crafted strings or patterns can cause remote code execution in some scenarios; one flaw may disclose memory or crash the process. Several issues affect applications handling attacker-controlled patterns. Affected releases are Ruby 3.3.13 and earlier, 3.4.0-3.4.12, and 4.0.0-4.0.9. The advisory recommends upgrading to Ruby 3.3.14, 3.4.13, or 4.0.10. Ruby 3.2 and earlier are end of life and will not receive these fixes.

### Source excerpt

Seven vulnerabilities have been discovered in Ruby's regular expression engine and in the case conversion of strings. We are aware of PoCs that prove some of them can be used to trigger remote code execution. We have released Ruby 4.0.10, 3.4.13 and 3.3.14 to fix them. We strongly recommend upgrading. CVE identifiers have been requested for these vulnerabilities but have not been assigned yet, so this advisory refers to them by their GitHub Security Advisory (GHSA) identifiers. GHSA-34m4-m9fh-gqp5: Heap buffer overflow in case conversion of strings Ruby has a one-byte heap-based buffer overflow in the case conversion of strings. Changing the case of a crafted string may allow remote code execution. We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios. GHSA-7x2q-68qv-6p8x: Double free in regular expression compilation Ruby has a double free in its regular expression engine. Compiling a crafted regular expression pattern may allow remote code execution in applications that compile attacker-controlled patterns. We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios. GHSA-87fm-7w84-j2px: Integer overflow in case conversion of strings Ruby has an integer overflow in the case conversion of strings, which causes a heap-based buffer overflow. Changing the case of a crafted string may allow remote code execution. We are aware of PoCs that prove this flaw can be used to trigger RCE in some scenarios. GHSA-wpqw-5qxg-m68r: Out-of-bounds read in case-insensitive regular expression matching Ruby has an out-of-bounds read in its regular expression engine. Matching against a crafted regular expression pattern may allow remote code execution in applications that use attacker-controlled patterns. We are aware of PoCs that prove this flaw can lead to memory corruption in an attacker-controlled way. GHSA-3p8q-wmhx-vm2w: Heap buffer overflow in regular expression compilation Ruby has an integer overflow in its regular exp

## How to Handle Styled Unicode Text in JavaScript

DevFeed: [How to Handle Styled Unicode Text in JavaScript](<https://devfeed.tech/articles/how-to-handle-styled-unicode-text-in-javascript-104217.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/how-to-handle-styled-unicode-text-in-javascript/>)

Author: Mohsin Qureshi

Published: 2026-10-25T10:19:58Z

Content type: article

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [JavaScript](<https://devfeed.tech/topics/javascript.md>), [case folding](<https://devfeed.tech/topics/case-folding.md>), [Emoji](<https://devfeed.tech/topics/emoji.md>)

Tags: [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [styled](<https://devfeed.tech/tags/styled.md>), [text](<https://devfeed.tech/tags/text.md>), [unicode](<https://devfeed.tech/tags/unicode.md>), [vanilla-javascript](<https://devfeed.tech/tags/vanilla-javascript.md>)

### AI overview

Styled Unicode letters such as hello are distinct code points from plain "hello," so ordinary equality and substring search do not match them. The excerpt recommends preserving users' original text for display and deriving a separate NFKC, case-normalized representation for search when the product requires those forms to match. Apply transformations by field: NFC can standardize canonically equivalent sequences, while NFKC can erase compatibility distinctions; neither should be applied destructively to all content. Unicode property escapes support international letters and numbers, but are not a security policy for identifiers, where confusables need separate restrictions. Normalization also does not solve character counting: use code-point iteration or Intl.Segmenter for grapheme counts, depending on the need. Test varied scripts, combining marks, styled letters, and emoji through validation, search, storage, and length handling.

### Source excerpt

null Continue reading How to Handle Styled Unicode Text in JavaScript on SitePoint.

## Linkup Research Releases SPARSEUP: A 149M-Parameter Open-Source Sparse Embedding Model

DevFeed: [Linkup Research Releases SPARSEUP: A 149M-Parameter Open-Source Sparse Embedding Model](<https://devfeed.tech/articles/linkup-research-releases-sparseup-a-149m-parameter-open-source-sparse-embedding-model-55340.md>)

Original publisher: [Read original article](<https://www.marktechpost.com/2026/09/19/linkup-research-releases-sparseup/>)

Author: Asif Razzaq

Published: 2026-09-19T07:48:38Z

Content type: release

Language: en

Sources: [MarkTechPost](<https://devfeed.tech/sources/marktechpost.md>)

Topics: [releases](<https://devfeed.tech/topics/releases.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [sentence-transformers](<https://devfeed.tech/topics/sentence-transformers.md>), [Transformers](<https://devfeed.tech/topics/transformers.md>), [case folding](<https://devfeed.tech/topics/case-folding.md>)

Tags: [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [ai-shorts](<https://devfeed.tech/tags/ai-shorts.md>), [apache](<https://devfeed.tech/tags/apache.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [case-folding](<https://devfeed.tech/tags/case-folding.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [editors-pick](<https://devfeed.tech/tags/editors-pick.md>), [embedding-model](<https://devfeed.tech/tags/embedding-model.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [models](<https://devfeed.tech/tags/models.md>), [new-releases](<https://devfeed.tech/tags/new-releases.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [python](<https://devfeed.tech/tags/python.md>), [releases](<https://devfeed.tech/tags/releases.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [sentence-transformers](<https://devfeed.tech/tags/sentence-transformers.md>), [staff](<https://devfeed.tech/tags/staff.md>), [tech-news](<https://devfeed.tech/tags/tech-news.md>), [technology](<https://devfeed.tech/tags/technology.md>), [vectors](<https://devfeed.tech/tags/vectors.md>)

### AI overview

Linkup Research released SPARSEUP, an open-source sparse embedding model based on a 149M-parameter ModernBERT backbone. It uses logit shifting, per-token top-k expansion, and case folding, and reports a 56.4 nDCG@10 score on BEIR-13. The model is available on Hugging Face under Apache 2.0.

### Source excerpt

Linkup Research has released SPARSEUP, an open-source sparse embedding model built on a 149M-parameter ModernBERT backbone. It scores 56.4 nDCG@10 on BEIR-13, which Linkup calls the best result it knows of for a public sparse encoder under 150M parameters. The model uses a logit shift, top-12 expansion per token and case folding to keep its vectors sparse. With the Seismic index, it reaches over 97% recall in about 380 microseconds per query, and it ships under Apache 2.0. The post Linkup Research Releases SPARSEUP: A 149M-Parameter Open-Source Sparse Embedding Model appeared first on MarkTechPost.

## Don't stop early: Case-folding source code at memory speed

DevFeed: [Don't stop early: Case-folding source code at memory speed](<https://devfeed.tech/articles/don-t-stop-early-case-folding-source-code-at-memory-speed-19849.md>)

Original publisher: [Read original article](<https://github.blog/engineering/architecture-optimization/dont-stop-early-case-folding-source-code-at-memory-speed/>)

Author: Alexander Neubeck

Published: 2026-07-31T16:00:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [case folding](<https://devfeed.tech/topics/case-folding.md>), [code search](<https://devfeed.tech/topics/code-search.md>)

Tags: [architecture-optimization](<https://devfeed.tech/tags/architecture-optimization.md>), [arithmetic](<https://devfeed.tech/tags/arithmetic.md>), [ascii](<https://devfeed.tech/tags/ascii.md>), [basic](<https://devfeed.tech/tags/basic.md>), [blog](<https://devfeed.tech/tags/blog.md>), [branch](<https://devfeed.tech/tags/branch.md>), [buffer](<https://devfeed.tech/tags/buffer.md>), [case-folding](<https://devfeed.tech/tags/case-folding.md>), [code](<https://devfeed.tech/tags/code.md>), [code-search](<https://devfeed.tech/tags/code-search.md>), [context](<https://devfeed.tech/tags/context.md>), [engine](<https://devfeed.tech/tags/engine.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [fast](<https://devfeed.tech/tags/fast.md>), [faster](<https://devfeed.tech/tags/faster.md>), [github](<https://devfeed.tech/tags/github.md>), [memory](<https://devfeed.tech/tags/memory.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [rust](<https://devfeed.tech/tags/rust.md>), [search](<https://devfeed.tech/tags/search.md>), [source](<https://devfeed.tech/tags/source.md>), [source-code](<https://devfeed.tech/tags/source-code.md>), [speed](<https://devfeed.tech/tags/speed.md>), [stop](<https://devfeed.tech/tags/stop.md>)

### AI overview

GitHub's Rust `casefold` crate speeds ASCII-heavy code folding with a branch-free loop that scans the whole buffer, rather than stopping at the first non-ASCII byte; the post says this enables over 45 GiB/s on one core. Folding is for locale-independent comparison and differs from display-oriented, context-sensitive lowercasing. The crate implements Unicode simple one-to-one folds (statuses C and S), excluding multi-character full folds such as ß -> ss and Turkic locale folds. The excerpt says source code is overwhelmingly ASCII and that the crate is used in Blackbird's indexing and query matching; the supplied text ends before explaining further implementation details.

### Source excerpt

How a branch-free loop and byte-space arithmetic let GitHub case-fold every byte of code search at >45 GiB/s on a single core. The post Don't stop early: Case-folding source code at memory speed appeared first on The GitHub Blog.

## GitHub now provides a warning about hidden Unicode text

DevFeed: [GitHub now provides a warning about hidden Unicode text](<https://devfeed.tech/articles/github-now-provides-a-warning-about-hidden-unicode-text-72602.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2025-05-01-github-now-provides-a-warning-about-hidden-unicode-text>)

Author: Allison

Published: 2025-05-01T20:18:07Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [case folding](<https://devfeed.tech/topics/case-folding.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Syntax Highlighting](<https://devfeed.tech/topics/syntax-highlighting.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [ai](<https://devfeed.tech/tags/ai.md>), [backdoor](<https://devfeed.tech/tags/backdoor.md>), [cause](<https://devfeed.tech/tags/cause.md>), [code](<https://devfeed.tech/tags/code.md>), [contents](<https://devfeed.tech/tags/contents.md>), [display](<https://devfeed.tech/tags/display.md>), [editor](<https://devfeed.tech/tags/editor.md>), [example](<https://devfeed.tech/tags/example.md>), [file](<https://devfeed.tech/tags/file.md>), [github](<https://devfeed.tech/tags/github.md>), [github-com](<https://devfeed.tech/tags/github-com.md>), [hidden](<https://devfeed.tech/tags/hidden.md>), [highlights](<https://devfeed.tech/tags/highlights.md>), [information](<https://devfeed.tech/tags/information.md>), [like](<https://devfeed.tech/tags/like.md>), [text](<https://devfeed.tech/tags/text.md>), [unicode](<https://devfeed.tech/tags/unicode.md>), [user-interface](<https://devfeed.tech/tags/user-interface.md>), [warning](<https://devfeed.tech/tags/warning.md>)

### AI overview

GitHub displays a warning on github.com when a file contains hidden Unicode text, which can make code appear different from how it is interpreted, especially by AI. To review a flagged file, open it in an editor that reveals hidden characters; Visual Studio Code highlights them by default. Check that each character is necessary and is not disguising text that will be interpreted or compiled differently. The excerpt points to two further references on Unicode-based backdoors and hidden text.

### Source excerpt

A warning is now displayed when a file's contents include hidden Unicode text on github.com. Such text can be interpreted differently than it appears in a user interface. For example,...