From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: =?UTF-8?q?Ulrich=20=C3=96lmann?= Date: Mon, 30 Sep 2019 09:26:05 +0200 Message-Id: <20190930072613.17956-6-u.oelmann@pengutronix.de> In-Reply-To: <20190930072613.17956-1-u.oelmann@pengutronix.de> References: <20190930072613.17956-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Subject: [OSS-Tools] [PATCH dt-utils 05/13] state: check length List-Id: Pengutronix Public Open-Source-Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: oss-tools-bounces@pengutronix.de Sender: "OSS-Tools" To: Pengutronix Public Open-Source-Development Cc: =?UTF-8?q?Ulrich=20=C3=96lmann?= VGhpcyBwb3J0cyB0aGUgZm9sbG93aW5nIGJhcmVib3ggY29tbWl0OgoKfCBjb21taXQgOTI3MTE4 MmYzYjMyZDQxYTgzY2E4MDJhNjM1ODBjMGM0ZmVmOWI5ZQp8IEF1dGhvcjogSmFuIFJlbW1ldCA8 ai5yZW1tZXRAcGh5dGVjLmRlPgp8IERhdGU6ICAgVGh1IE1heSAyMyAwOTo0OTowMCAyMDE5ICsw MjAwCnwKfCAgICAgY29tbW9uOiBzdGF0ZTogY2hlY2sgbGVuZ3RoCnwKfCAgICAgaWYgd3JpdHRl bl9sZW5ndGggaXMgcmVhZCBmcm9tIGEgcGFydGlhbCB3cml0dGVuIGJ1Y2tldCBpdCBtYXkgYmUg dG8KfCAgICAgYmlnIGFuZCB4bWFsbG9jIHdpbGwgcGFuaWMgYmFyZWJveC4KfAp8ICAgICBDaGVj ayBpZiB0aGUgdmFsdWUgaXMgc2FuZS4gTWFrZSByZWFkX2xlbiB1bnNpZ25lZCB0byBhdm9pZCBu ZWdhdGl2ZQp8ICAgICB2YWx1ZXMuCnwKfCAgICAgU2lnbmVkLW9mZi1ieTogSmFuIFJlbW1ldCA8 ai5yZW1tZXRAcGh5dGVjLmRl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