From a21e88d476d0ceab7f5ba4df29cf2ffa16702017 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Oct 2021 13:38:59 +0200 Subject: [PATCH] docs: document what integer range we expect from JSON parsers --- docs/USER_RECORD.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/USER_RECORD.md b/docs/USER_RECORD.md index c134ec42e3..f82f1307cc 100644 --- a/docs/USER_RECORD.md +++ b/docs/USER_RECORD.md @@ -89,6 +89,11 @@ synthesize and process with numerous programming languages. It's particularly popular in the web communities, which hopefully should make it easy to link user credential data from the web and from local systems more closely together. +Please note that this specification assumes that JSON numbers may cover the full +integer range of -2^63 … 2^64-1 without loss of precision (i.e. INT64_MIN … +UINT64_MAX). Please read, write and process user records as defined by this +specification only with JSON implementations that provide this number range. + ## General Structure The JSON user records generated and processed by systemd follow a general