MozillaSecurity / MozillaSecurity/FuzzManager

[CrashManager] Crash in signature/edit

Open
#468 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug crashmanager
Dominant language
Python
Stars
208
Forks
48
Avg merge
23h 5m
Merged PRs (30d)
2

Description

I unselected "Reassign matching crashes (unassigned crashes and crashes assigned to this bucket will be reassigned)" and changed a bucket signature and ran into this:

Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner
  41.             response = get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _legacy_get_response
  249.             response = self._get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  187.                 response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
  185.                 response = wrapped_callback(request, *callback_args, **callback_kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
  23.                 return view_func(request, *args, **kwargs)

File "./crashmanager/views.py" in editSignature
  729.         return __handleSignaturePost(request, bucket)

File "./crashmanager/views.py" in __handleSignaturePost
  593.         'inList': inList, 'outList': outList,

Exception Type: UnboundLocalError at /crashmanager/signatures/1032/edit/
Exception Value: local variable 'inList' referenced before assignment

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in crashmanager/views.py at editSignature and __handleSignaturePost, especially the path around line 593 where inList is referenced. Reproduce the signature edit with reassignment unselected, then verify the edit completes without the UnboundLocalError at /crashmanager/signatures/1032/edit/.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.