I am trying to write an application that uses pretty URLS or REST (still learning what this entails). Anyway my urls look like www.foo.net/some_url/some_parameter/some_keyword. I can be sure a url will never exceed N characters. Should I validate the url length with every request in order to protect against buffer overflow/injection attacks? I am going to guess this is an obvious yes but I am no security expert so perhaps I am missing something.
Update: Thanks for the comments. I can see there are differences on this. I will reject urls over length max_expected+some_number, which will be a variable and very easy to configure as the application changes. I am guessing most buffer overflows are a typically a result of very long strings. I realize this does not make my application completely secure but I think it helps and it is low hanging fruit.