overflow in ex address parsing
Date: 16.11.2023
Severity: Low
When parsing relative ex addresses one may unintentionally cause an
overflow. Ironacially this happens in the existing overflow check, because
the line number becomes negative and LONG_MAX - lnum will cause the overflow.
Impact is low, user interaction is required and a crash may not even happen.
So verify that the line numer is actually positive before doing the actual overflow
check.
The Vim project would like to thank Fabian Toepfer for reporting this issue
which is now fixed in Vim patch 9.0.2110.
overflow in ex address parsing
Date: 16.11.2023
Severity: Low
When parsing relative ex addresses one may unintentionally cause an
overflow. Ironacially this happens in the existing overflow check, because
the line number becomes negative and LONG_MAX - lnum will cause the overflow.
Impact is low, user interaction is required and a crash may not even happen.
So verify that the line numer is actually positive before doing the actual overflow
check.
The Vim project would like to thank Fabian Toepfer for reporting this issue
which is now fixed in Vim patch 9.0.2110.