You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2024/06/19 15:54:00 UTC

[jira] [Updated] (ARTEMIS-4779) UNCHECKED_FUNC_RES.STAT Return value of function is not checked

     [ https://issues.apache.org/jira/browse/ARTEMIS-4779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram updated ARTEMIS-4779:
------------------------------------
    Description: 
in line: https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java#L625

In this case, the readBoolean() function reads short values ​​from the component. Checking for the existence of values ​​is necessary in all cases, since the developer cannot be sure that the value of a variable will not be returned with an error.

!image-2024-05-22-17-02-37-538.png!

 

  was:
in line: https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java#L625

In this case, the readBoolean() function reads short values ​​from the component. Checking for the existence of values ​​is necessary in all cases, since the developer cannot be sure that the value of a variable will not be returned with an error.

!image-2024-05-22-17-02-37-538.png!

 

Found by Linux Verification Center (portal.linuxtesting.ru) with SVACE.

Author: Firsov Vladimir, BMSTU (fvv22u102@student.bmstu.ru)

 


> UNCHECKED_FUNC_RES.STAT Return value of function is not checked
> ---------------------------------------------------------------
>
>                 Key: ARTEMIS-4779
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-4779
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: JMS
>    Affects Versions: 2.25.0
>            Reporter: Andrey Slepykh
>            Priority: Major
>         Attachments: image-2024-05-22-17-02-37-538.png
>
>
> in line: https://github.com/apache/activemq-artemis/blob/fb1b362b473cad51ae5d05a897be02b1fa8461d4/artemis-jms-server/src/main/java/org/apache/activemq/artemis/jms/server/config/impl/ConnectionFactoryConfigurationImpl.java#L625
> In this case, the readBoolean() function reads short values ​​from the component. Checking for the existence of values ​​is necessary in all cases, since the developer cannot be sure that the value of a variable will not be returned with an error.
> !image-2024-05-22-17-02-37-538.png!
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact