Skip to content

Uninit field at src/crypto/crypto_rsa.h RSACipherConfig #56693

Description

@wooffie

Version

20.18.0

Platform

any

Subsystem

crypto

What steps will reproduce the bug?

Default ctor of RSACipherConfig class cannot initialize field CryptoJobMode mode

RSACipherConfig() = default;

Consider set default value for mode, otherwise it is undefined behavior

P.S. I learn some code uses that, looks its not critical, but will be fine to eliminate this bug

How often does it reproduce? Is there a required condition?

By using default ctor and access field mode

What is the expected behavior? Why is that the expected behavior?

Field should have default value

What do you see instead?

No default value

Additional information

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Reporter: Burkov Egor (eburkov@rvision.ru).

Organization: R-Vision (support@rvision.ru).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions