From: Lennart Poettering Date: Thu, 28 Oct 2021 11:38:59 +0000 (+0200) Subject: docs: document what integer range we expect from JSON parsers X-Git-Tag: v250-rc1~391 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a21e88d476d0ceab7f5ba4df29cf2ffa16702017;p=thirdparty%2Fsystemd.git docs: document what integer range we expect from JSON parsers --- diff --git a/docs/USER_RECORD.md b/docs/USER_RECORD.md index c134ec42e3f..f82f1307cc8 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