8
Recent changes to address fields have increased the length of several to 100 however the AddrArray in Format Address remains an array of 50 which is causing the following effects:
1) Shortening long addresses unnecessarily
2) Causing a possible DelStr overflow in function GeneratePostCodeCity because whilst the parameter it is passed into is Text[100] when MaxStrLen is evaluated against it, it evaluates the AddrArray that was passed in. The second parameter of DelStr is MaxStrLen(PostCodeCityText) - StrLen(PostCode) - StrLen(County) - 3, which because AddrArray is passed into PostCodeCityText evaluates, if PostCode and County are both full, as 50 - 20 - 30 - 3 = -3.
1) Shortening long addresses unnecessarily
2) Causing a possible DelStr overflow in function GeneratePostCodeCity because whilst the parameter it is passed into is Text[100] when MaxStrLen is evaluated against it, it evaluates the AddrArray that was passed in. The second parameter of DelStr is MaxStrLen(PostCodeCityText) - StrLen(PostCode) - StrLen(County) - 3, which because AddrArray is passed into PostCodeCityText evaluates, if PostCode and County are both full, as 50 - 20 - 30 - 3 = -3.
STATUS DETAILS
New