From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 566896DE0C19 for ; Thu, 30 Jan 2020 01:02:42 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mNI+ZvQZ"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 1.703 X-Spam-Level: * X-Spam-Status: No, score=1.703 tagged_above=-999 required=5 tests=[DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, NO_DNS_FOR_FROM=0.379, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, T_DKIM_INVALID=0.01, T_SPF_TEMPERROR=0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ScrtzKZLMzWG for ; Thu, 30 Jan 2020 01:02:41 -0800 (PST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by arlo.cworth.org (Postfix) with ESMTPS id 576FF6DE0BCD for ; Thu, 30 Jan 2020 01:02:41 -0800 (PST) Received: by mail-pj1-f47.google.com with SMTP id e9so1059834pjr.4 for ; Thu, 30 Jan 2020 01:02:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:subject:references:mime-version :content-disposition:content-transfer-encoding; bh=q1VTFL6HpvjOMCg597P4gP2SXfcme/zkXZb1l4nsrks=; b=mNI+ZvQZr+RUS/X+udTYaO3l04oilSfGT4x1WOqIwCYGgv9KZn+weQfSGWDvSgVjWs NA0sj1Wr1ROClxFKjYvFvfYlx+lgKM39jeFRmXuKcmuVvJEAjKTOytKYMqzcL8o4LlsQ yNslCJ0hmVxpTT5dU+QzZT2vhWI6Pm9E8bhjV+NyofLtd7Fhu/Mqy6fq7gfFQPmztmfD iUwm2qKsCjPmb7l1OAM0WfpwpRbZfOtvRi729X+7QpVlxVW46ll5UEm30Di1iY99OIPz Dpl8Uf17w1KECCckpwo2HDOAdFQ8PU4fla1+D26Hosb5NQ35Gmx4qJCixRv0khRjuvFT zeyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:subject:references :mime-version:content-disposition:content-transfer-encoding; bh=q1VTFL6HpvjOMCg597P4gP2SXfcme/zkXZb1l4nsrks=; b=g1fXeqaIxeKD8LY5n9qQi8OnRT3f18lAGrRYc9GTPST98V/1mwYFLQqHKr41KcZy4A QhvvKsuJuCFSywTfQOWv9NThMXGVf1DYR98p5/8shyFTXOXz4CpwG/I783Q8qeqRADil SPojK+InYcjvuFBJezTvztH9mtpW6SboECKL7v6PtjzuGOrjHJhV0gipFPn24hpqYFDl Xd2vCfVba8f6UrVS49g+bZDyn8QhY3hfZ3OW37hw2ZJAn/2uyZ8pJs7q/xF/KyhTWwYY w5irHa5GT8TnestZL+GlLOMuNwtChyEwZJpz7fVL7M/3mJEYleaJxcaAjjbPUeIaT8Qh 4MGg== X-Gm-Message-State: APjAAAUV8c8B65r+3W1YEuV2JE0F/ejU7/+LcvQ0CkLrupuN2TA+Sz/T MPPNQQx5D/CHTC03JV3zL8W0ZQn1 X-Google-Smtp-Source: APXvYqz1P3KXa8ehzpDi5zBnXzfwDiDEu7dJF8Eo2Eg1Hygyju2dDYcQbdpi3ALnH6F8b++8u5Uj1Q== X-Received: by 2002:a17:90a:1e63:: with SMTP id w90mr4725163pjw.36.1580374959474; Thu, 30 Jan 2020 01:02:39 -0800 (PST) Received: from localhost (ppp118-209-127-36.bras1.mel11.internode.on.net. [118.209.127.36]) by smtp.gmail.com with ESMTPSA id cx18sm5356900pjb.26.2020.01.30.01.02.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Jan 2020 01:02:38 -0800 (PST) Date: Thu, 30 Jan 2020 20:02:31 +1100 Message-ID: <20200130200231.GB4015@kurr.localdomain> From: Peter Wang To: notmuch@notmuchmail.org Subject: timestamp overflows sprinter interface References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jan 2020 09:02:42 -0000 Hi, On a system where time_t is 64-bit and 'int' is a signed 32-bit integer type, timestamps beyond some time in 2038 will be serialised to a negative value. The simplest solution appears to be to change the type in the sprinter method to int64_t: void (*integer)(struct sprinter *, int64_t); Any other suggestions? Peter