sassoftware / sassoftware/python-swat

Segmentation Fault When Connecting To CAS With Incorrect Credentials

Open
#117 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
159
Forks
65
PR merge metrics
No merged PRs in 30d

Description

When connecting to a CAS server with a username and password, it is possible to hit a segmentation fault if the credentials are incorrect! This totally exits out of the Python program/shell. Below is an example program that I can reproduce this with. Obviously, I have removed the machine, username, and password for privacy reasons:

from swat import *
s = CAS('<machine_ip_address_or_hostname>', 5570, '<username>', '<password>')

The result of running this is Segmentation Fault (core dumped) if the credentials are incorrect.

Contributor guide

Open the contributing guide

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 with the provided Python example and the CAS constructor, reproducing the failure with incorrect credentials. Trace the connection and authentication handling to determine where the segmentation fault occurs; done means invalid credentials return a handled error instead of terminating the Python process.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.