Florian Weimer

Florian Weimer's contributions

Featured image for: Mostly harmless: An account of pseudo-normal floating point numbers.
Article

Why glibc 2.34 removed libpthread

Florian Weimer

Consolidation of libraries in the GNU C library means more error-free builds, but there are consequences for developers and system administrators.

GNU C library
Article

Recommended compiler and linker flags for GCC

Florian Weimer

This article walks through a list of recommended build flags for when you compile your C or C++ programs with GCC. Do you know which build flags you need to specify in order to obtain the same level of security hardening that GNU/Linux distributions such as Fedora and Red Hat Enterprise Linux use?

GNU C library
Article

Adding buffer overflow detection to string functions

Florian Weimer

This article describes the steps required to add buffer overflow protection to string functions. As a real-world example, we use the strlcpy function, which is implemented in the libbsd library on some GNU/Linux systems. This kind of buffer overflow protection uses a GNU Compiler Collection (GCC) feature for array size tracking (“source fortification”), accessed through the __builtin_object_size GCC built-in function. In general, these checks are added in a size-checking wrapper function around the original (wrapped) function, which is strlcpy in...