I encountered this in real life while doing a search on packages.gentoo.org for "dns". The database has changed (two packages added) since then to make this not fail like it used to, so I frobbed the URL as noted above. When the last page of results is full, containing 20 results, but no more results are available to be displayed (the next page would display 0 results), it displays a [Next] link to offset=42. Going there makes it complain that it couldn't find an ebuild to match my query. What it *should* do is omit creating the [Next] link to that page in the first place. It shouldn't assume that, just because this page is full, the next page will have at least one result--there's a 5% chance that it won't.
*** This bug has been marked as a duplicate of 33847 ***