Skip to content
Snippets Groups Projects

Defend against the length-contraction slot_testv_and_readv_and_writev DoS

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
918 918 slot_test_vectors(),
919 919 slot_data_vectors(),
920 one_of(
921 # The new length might be omitted completely.
922 just(None),
923 # Or it might be given as an integer. Allow a zero size which
924 # means "delete this share" in this context.
925 sizes(),
926 ),
920 # The underlying Tahoe-LAFS storage protocol allows None or an integer
921 # here (new_length) to set the size of the mutable container. The
922 # real Tahoe-LAFS storage client never uses this feature and always
923 # passes None. There are undesirable interactions between non-None
924 # values for new_length and our spending protocol. Therefore, we
925 # disable non-None values. So don't generate any here.
926 just(None),
  • Created by: tomprince

    Review: Approved

  • Please register or sign in to reply
    Loading