الخميس 03 ديسمبر 2026 01:27:17 GMT+01:00

Netcrook

الرئيسيةالبيان
الأخبار
Techcrook
Geocrook
WikicrookالفريقAppاتصال
EnglishItaliano

WIKICROOK

Single-byte encoding

A character encoding that represents many characters with one byte, which can create edge cases in text processing.

A single-byte encoding represents characters using one byte each, typically allowing up to 256 byte values. ISO-8859-1 and Windows-1252 are examples. Unlike UTF-8, where characters may occupy different numbers of bytes, a single-byte encoding has a fixed one-byte representation for each character it supports.

These encodings matter in cybersecurity because software can make unsafe assumptions about how text length, characters, and memory sizes relate. Encoding-specific operations such as case conversion may expose edge cases, particularly when they process attacker-controlled input in low-level runtime code. In Ruby’s reported string-conversion vulnerability, crafted strings in certain single-byte encodings could reach a memory-safety flaw. Defenses include promptly patching affected runtimes, validating and normalizing untrusted text, and reviewing code paths that handle legacy encodings. Input normalization can reduce exposure, but it does not replace applying security updates.

← فهرس WIKICROOK