Merge lp:~weyrick/bzr/720853-max-recursion-depth into lp:bzr
Proposed by
Shannon Weyrick
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Martin Pool | ||||||||
Approved revision: | no longer in the source branch. | ||||||||
Merged at revision: | 6256 | ||||||||
Proposed branch: | lp:~weyrick/bzr/720853-max-recursion-depth | ||||||||
Merge into: | lp:bzr | ||||||||
Diff against target: |
48 lines (+17/-0) 3 files modified
bzrlib/btree_index.py (+6/-0) bzrlib/tests/test_btree_index.py (+8/-0) doc/en/release-notes/bzr-2.5.txt (+3/-0) |
||||||||
To merge this branch: | bzr merge lp:~weyrick/bzr/720853-max-recursion-depth | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Pool | Approve | ||
John A Meinel | Needs Fixing | ||
Robert Collins | Pending | ||
Review via email:
|
Commit message
raise BadIndexKey rather than crashing if the key is unreasonably long
Description of the change
Fix recursion problem by explicitly checking for a key that is too big to fit in a page.
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/04/2011 05:41 PM, Shannon Weyrick wrote: /bugs.launchpad .net/bzr/ +bug/720853 /code.launchpad .net/~weyrick/ bzr/720853- max-recursion- depth/+ merge/81297
> Shannon Weyrick has proposed merging
> lp:~weyrick/bzr/720853-max-recursion-depth into lp:bzr.
>
> Requested reviews: Robert Collins (lifeless) Related bugs: Bug
> #720853 in Bazaar: "bzr crashed with RuntimeError in normpath():
> maximum recursion depth exceeded while calling a Python object"
> https:/
>
> For more details, see:
> https:/
>
> Fix recursion problem by explicitly checking for a key that is too
> big to fit in a page. In that case, the key is skipped.
Silently discarding user data is not a good way to go. I can see
teaching something like bzr-search handling an error that indicates it
can ignore the request, but we really don't want to silently skip data
that cannot be recorded.
review: needsfixing
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
0SBQACgkQJdeBCY SNAAPz9gCfd4Hom 4IBhhiNrw25Gw+ SF02e S7m+9yJXK7688K5 8VIM5s
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk6
K5sAn3rstL/
=XxxO
-----END PGP SIGNATURE-----