Open attachment 203900 [details] (from bug 169403). It is created in Writer. I Writer, its page's height is ~6000 mm In Word, it's small (maybe locale-specific? I see ~220 mm). [MS-OI29500] specifies in 2.1.220 Part 1 Section 17.6.13, pgSz (Page Size): > The standard states that the h and w attributes can have any value in the range > 0 to 4294967295, inclusive. > > Word requires that this value is between the width of the page margins (and any > column widths, for the w attribute) and 31680 (22 inches). The actual markup in the document is '<w:pgSz w:w="17008" w:h="340157"/>', with the 'h' attribute more than 10 times greater than the maximum.
See [MS-OI29500]: Office Implementation Information for ISO/IEC 29500 Standards Support at https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/1fd4a662-8623-49c0-82f0-18fa91b413b8
Curiously, Word can open a document with page size 115x115 cm as is, but 116x116 cm overflows and becomes 0.4x0.4 cm.
(In reply to Aron Budea from comment #2) > Word can open a document with page size 115x115 cm as is, but > 116x116 cm overflows and becomes 0.4x0.4 cm. 115 cm = 65196.85 twip 116 cm = 65763.78 twip So obviously, there is unsigned 16-bit overflow. 65535 twip = 115.6 cm ~ 116 cm - 0.4 cm