bugConcurrent Versions System - Bugs: bug #38729, Problem in buffer.c if...


bug #38729: Problem in buffer.c if configuration not SHUTDOWN_SERVER and START_RSH_WITH_POPEN_RW is set.

Submitter:  Flávio Medeiros <flaviommedeiros>
Submitted:  Sat 13 Apr 2013 02:30:22 PM UTC
Category:  Bug Fix (patch attached) Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release: 
Fixed Release:  None Fixed Feature Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sat 13 Apr 2013 02:30:22 PM UTC, original submission:  

There is a problem in buffer.c (we saw it from version 1.11.17 to 1.11.23) if configuration not SHUTDOWN_SERVER and START_RSH_WITH_POPEN_RW is set. We will get an ELSE IF statement without an IF statement, which is not a valid construction according to the C grammar (function: stdio_buffer_shutdown). The original code is shown bellow and we sent a file attached (buffer-modified-flaviomedeiros.c) with the correction. This problem has not been submitted before.

if (buf->input) {

if (current_parsed_root->method != server_method)
# endif

# ifndef NO_SOCKET_TO_FD
    /* shutdown() sockets */
    if (S_ISSOCK (s.st_mode))
shutdown (fileno (bc->fp), 0);
# endif /* NO_SOCKET_TO_FD */

/* Can't be set with SHUTDOWN_SERVER defined */
else if (pclose (bc->fp) == EOF)
    error (1, errno, "closing connection to %s",
    closefp = 0;


Flávio Medeiros <flaviommedeiros>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #27860:  buffer-modified-flaviomedeiros.c added by flaviommedeiros (43KiB - application/octet-stream - The file (buffer-modified-flaviomedeiros.c) corrects the problem of buffer.c mentioned.)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flaviommedeiros (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-13 flaviommedeiros Attached File- Added buffer-modified-flaviomedeiros.c, #27860

    Back to the top

    Powered by Savane 3.13-f762.
    Corresponding source code