From c674d38c8cea475cd29f7b0835e9864a2424b646 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 31 Mar 2023 22:37:42 +0000 Subject: Add additional check on float precision after parsing, only compile the value to a float when the difference between float and double parsed from same raw string is smaller than 1. Bug: b/69347762 Test: Verified affected atests pass and added new atest Change-Id: I25da0baccba580484db39aa2d0a1bb765706635d --- tools/aapt2/ResourceValues.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/aapt2/ResourceValues.h') diff --git a/tools/aapt2/ResourceValues.h b/tools/aapt2/ResourceValues.h index 6f9dccbd3bcc..5192c2be1f98 100644 --- a/tools/aapt2/ResourceValues.h +++ b/tools/aapt2/ResourceValues.h @@ -284,6 +284,7 @@ struct BinaryPrimitive : public TransformableItem