One Nio — одна из самых быстрых библиотек сериализации, но у неё есть слабое место: она ничего не знает про кастомные методы writeObject(), readObject(), writeReplace() и readResolve(). Мы реализовали CustomizedSerializer, повторили «магию» defaultWriteObject() и defaultReadObject() через GeneratedSerializer, обеспечили…
A program using swift-nio-http2 is vulnerable to a denial of service attack caused by a network peer sending ALTSVC or ORIGIN frames. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. This vulnerability is caused by a logical error after frame parsing but before frame handling. ORIGIN and ALTSVC frames are not currently supported by swift-nio-http2, and should be ignored. However, one code path that encounters them has a deliberate trap instead. This was left behind from the original…
A program using swift-nio-http2 is vulnerable to a denial of service attack, caused by a network peer sending a specially crafted HPACK-encoded header block. This attack affects all swift-nio-http2 versions from 1.0.0 to 1.19.1. There are a number of implementation errors in the parsing of HPACK-encoded header blocks that allow maliciously crafted HPACK header blocks to cause crashes in processes using swift-nio-http2. Each of these crashes is triggered instead of an integer overflow. A malicious HPACK…
Java-сериализация — штука удобная, но медленная. Библиотека One Nio решает эту проблему: она генерирует персональные сериализаторы для каждого класса прямо из байткода, используя ASM, Unsafe и MagicAccessorImpl. Результат — сериализация в разы быстрее стандартной и других популярных…