Menu

#1482 log: size of destination buffer is smaller than the size of the source buffer

5.1.FC
fixed
nobody
None
enhancement
log
-
major
False
2017-05-22
2015-09-16
No

In the function void log_stream_delete(log_stream_t **s) @ lgs_stream.c, there is using strcpy()
in which the size of destination buffer (max: 256 bytes) is smaller than the size of the source buffer (max: 257 bytes).

strcpy((char *)objectName.value, stream->name);

If long DN is enabled/supported, logsv could get trouble.

Discussion

  • Anders Widell

    Anders Widell - 2017-04-03
    • Milestone: 5.0.FC --> future
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-05-22
    • status: unassigned --> fixed
    • Blocker: --> False
    • Milestone: future --> 5.1.FC
     
  • Vu Minh Nguyen

    Vu Minh Nguyen - 2017-05-22

    Fixed in enhacement ticket [#1315] since OpenSAF 5.1 release.

     

    Related

    Tickets: #1315


Log in to post a comment.

MongoDB Logo MongoDB