Skip to content

Instantly share code, notes, and snippets.

Zephyr Year 2038 Immunity Report

1. Executive Summary

Zephyr is immune to the Year 2038 bug by default.

The operating system enforces 64-bit time representations at both the kernel and application library levels. While it is possible to disable these protections via Kconfig, the default configuration prevents the build from succeeding if the underlying C library tries to use a 32-bit time_t.

2. Understanding the Year 2038 Bug

The Mechanism

#!/usr/bin/env python3
# SPDX-FileCopyrightText: Copyright The Zephyr Project Contributors
# SPDX-License-Identifier: Apache-2.0
"""
List open GitHub PRs that are **truly mergeable**: no merge conflicts (GitHub
``mergeable``) **and** all **required** status checks completed successfully.
For each listed PR, shows failing **non-required** checks (if any).
Uses the GitHub GraphQL API. Authenticate with ``gh auth login`` or set