Fix issues identified by static analyzer in BasicRandom.c and ExtendedRandom.c
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- c
- Domain
- cryptography, security
Research direction
Start in BasicRandom.c at lines 41, 85, and 133, then inspect ExtendedRandom.c at lines 41 and 179. Review how nearby C code validates pointers and handles ICC_GenerateRandomSeed status, then rerun the project’s static analysis; done means all listed findings are addressed without changing the intended random-generation behavior.
Written by the indexing model from the issue text.
Description
BasicRandom.c:
Input parameters such as bytes and seed are not validated for NULL. line 41, line 85
line 133: ICC_GenerateRandomSeed(ockCtx, &status, size, seedNative); - return value must be checked. if (status.majRC != ICC_OK)
ExtendedRandom.c: line 41: algName is not checked for being NULL.
Line 179: seed is not being checked for being NULL.
- Dominant language
- Java
- Stars
- 16
- Forks
- 24
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 38
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IBM/OpenJCEPlus
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
IBM/OpenJCEPlus#1822 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
IBM/OpenJCEPlus#1793 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IBM/OpenJCEPlus#1752 · 1 comment ·
-
IBM/OpenJCEPlus#1810 · 1 assignee ·
-
IBM/OpenJCEPlus#1809 · 1 assignee ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100