You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Maxim P. Dementiev (JIRA)" <ji...@apache.org> on 2008/10/10 18:05:44 UTC

[jira] Created: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Array subscript is above array bounds in od_completion(), src/cli.c.
--------------------------------------------------------------------

                 Key: ZOOKEEPER-183
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
             Project: Zookeeper
          Issue Type: Bug
          Components: c client
         Environment: Linux
            Reporter: Maxim P. Dementiev


Having:
        char buf[4096*16];
Present:
        buf[sizeof(buf)]=0;
Must be:
        buf[sizeof(buf)-1]=0;


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt reassigned ZOOKEEPER-183:
--------------------------------------

    Assignee: Maxim P. Dementiev

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>            Assignee: Maxim P. Dementiev
>         Attachments: ZOOKEEPER-183.patch
>
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Patrick Hunt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Hunt updated ZOOKEEPER-183:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed revision 704662.

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>            Assignee: Maxim P. Dementiev
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-183.patch
>
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Maxim P. Dementiev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim P. Dementiev updated ZOOKEEPER-183:
-----------------------------------------

    Attachment: ZOOKEEPER-183.patch

The patch is obvious: last element is sizeof()-1, not sizeof().

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>         Attachments: ZOOKEEPER-183.patch
>
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639799#action_12639799 ] 

Hudson commented on ZOOKEEPER-183:
----------------------------------

Integrated in ZooKeeper-trunk #114 (See [http://hudson.zones.apache.org/hudson/job/ZooKeeper-trunk/114/])
    . Array subscript is above array bounds in od_completion(), src/cli.c


> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>            Assignee: Maxim P. Dementiev
>             Fix For: 3.0.0
>
>         Attachments: ZOOKEEPER-183.patch
>
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Maxim P. Dementiev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim P. Dementiev updated ZOOKEEPER-183:
-----------------------------------------

    Status: Patch Available  (was: Open)

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>            Assignee: Maxim P. Dementiev
>         Attachments: ZOOKEEPER-183.patch
>
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Maxim P. Dementiev (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim P. Dementiev updated ZOOKEEPER-183:
-----------------------------------------

    Comment: was deleted

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Mahadev konar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638624#action_12638624 ] 

Mahadev konar commented on ZOOKEEPER-183:
-----------------------------------------

maxim,
would you like to file a patch for this? on instructions on how to file a patch please take a look at 

http://wiki.apache.org/hadoop/ZooKeeper/HowToContribute



> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-183) Array subscript is above array bounds in od_completion(), src/cli.c.

Posted by "Maxim P. Dementiev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638826#action_12638826 ] 

Maxim P. Dementiev commented on ZOOKEEPER-183:
----------------------------------------------

Thanks for your comment.
I will.

> Array subscript is above array bounds in od_completion(), src/cli.c.
> --------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-183
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-183
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>         Environment: Linux
>            Reporter: Maxim P. Dementiev
>
> Having:
>         char buf[4096*16];
> Present:
>         buf[sizeof(buf)]=0;
> Must be:
>         buf[sizeof(buf)-1]=0;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.