Hi Canh,

 

Thank you. I will close the issue as invalid.

 

Best Regards

Srinivas

 

 

From: Canh Truong via Opensaf-tickets 
[mailto:[email protected]] 
Sent: Monday, December 11, 2017 9:32 AM
To: [email protected]
Cc: Canh Truong <[email protected]>
Subject: [tickets] [opensaf:tickets] #2659 log: saflogger possible use of 
invalid pointer

 

Hi

The maxinum charaters of file name in log 255 characters, but maximum 
characters of stream name is greater than 255 characters. In case, we use 
stream name with size > 255 characters and file name < 255 characters (with 
option -f ) is still valid. (Test case logtest 13 5)

For the local tmpDNn variable, I think you are right. Should we close this 
ticket as invalid ?

  _____  

HYPERLINK 
"https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_p_opensaf_tickets_2659_&d=DwMCAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=rU6x356sikQZSi7Ttc2DuiqAgbc0QIeANg72N5AllVc&m=gLdujLZJ0eeWXKFNffrP8FGXrah9MbBUEHAiEJvEV_o&s=x7iNCtHd3W7G8CdtW4LYurokV1Z5EQ1lrnmHao9u0WY&e="[tickets:#2659]
 log: saflogger possible use of invalid pointer

Status: review
Milestone: 5.18.01
Created: Sun Oct 29, 2017 01:04 PM UTC by Johnny Lind
Last Updated: Fri Dec 08, 2017 10:51 AM UTC
Owner: Srinivas Siva Mangipudy

In case the option -a is given to saflogger with a application name longer than 
256 characters and extended names are used, saAisNameLend takes a local stack 
allocated char array "tmpDn" as argument and will store a pointer to the local 
variable in the SaNameT argument making the SaNameT having invalid pointer 
after the scope ends as tmpDn will be freed. The SaNameT variable is then later 
used to open a log stream.

  _____  

Sent from sourceforge.net because HYPERLINK 
"mailto:[email protected]"[email protected]
 is subscribed to HYPERLINK 
"https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_p_opensaf_tickets_&d=DwMCAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=rU6x356sikQZSi7Ttc2DuiqAgbc0QIeANg72N5AllVc&m=gLdujLZJ0eeWXKFNffrP8FGXrah9MbBUEHAiEJvEV_o&s=OSMTDLh9SppLP880p-47Z6KNjMKNjW9UEVPk7s2Ngug&e="https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
HYPERLINK 
"https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_p_opensaf_admin_tickets_options.&d=DwMCAg&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=rU6x356sikQZSi7Ttc2DuiqAgbc0QIeANg72N5AllVc&m=gLdujLZJ0eeWXKFNffrP8FGXrah9MbBUEHAiEJvEV_o&s=jYWy8s01ozMqvXpbWakxpwkjMyhB34xmk3gyHRzS4kQ&e="https://sourceforge.net/p/opensaf/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.



---

** [tickets:#2659] log: saflogger possible use of invalid pointer**

**Status:** review
**Milestone:** 5.18.01
**Created:** Sun Oct 29, 2017 01:04 PM UTC by Johnny Lind
**Last Updated:** Mon Dec 11, 2017 04:01 AM UTC
**Owner:** Srinivas Siva Mangipudy


In case the option -a is given to saflogger with a application name longer than 
256 characters and extended names are used, saAisNameLend takes a local stack 
allocated char array "tmpDn" as argument and will store a pointer to the local 
variable in the SaNameT argument making the SaNameT having invalid pointer 
after the scope ends as tmpDn will be freed. The SaNameT variable is then later 
used to open a log stream.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to