[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Help understanding this behaviour
From: |
Wim Niemans |
Subject: |
Re: [open-cobol-list] Help understanding this behaviour |
Date: |
Mon, 2 Sep 2013 10:26:26 +0200 |
To me, this looks like a serious bug in the compiler, because it should perform
a length check.
When this string is longer, there seem to be no problem and I guess everybody
will understand that and refer to the distinct picture clauses.
When this string is shorter, however, Cobol should definite issue a error or
warning, because it otherwise facilitates a security leak.
The only defense that can be used is the mismatch of BY VALUE / BY REFERENCE in
the the caller and the callee.
Wim
Op 2 sep. 2013, om 05:09 heeft Patrick het volgende geschreven:
> Hi Charles, Hello Paul, Hi Michael
>
> This all makes sense now. The "problem" is actually on the receiving end
> where a sort of buffer overflow occurs when the additional memory
> locations are read due to the mismatched values.
>
> I suppose in production code, it's not very often that someone would
> just want to send a string in quotes only anyways. I am probably getting
> tripped up with quick mock up code.
>
> This information will help a lot, getting used to the PIC based type
> system takes a bit of time but I think I am well on my way now.
>
> Have a great night guys !
>
> -Patrick
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> Discover the easy way to master current and previous Microsoft technologies
> and advance your career. Get an incredible 1,500+ hours of step-by-step
> tutorial videos with LearnDevNow. Subscribe today and save!
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> _______________________________________________
> open-cobol-list mailing list
> address@hidden
> https://lists.sourceforge.net/lists/listinfo/open-cobol-list
- [open-cobol-list] Help understanding this behaviour, Patrick, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Charles Anthony, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Patrick, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Charles Anthony, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Patrick, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour,
Wim Niemans <=
- Re: [open-cobol-list] Help understanding this behaviour, Brian Tiffin, 2013/09/03
- Re: [open-cobol-list] Help understanding this behaviour, Wim Niemans, 2013/09/03
- Re: [open-cobol-list] Help understanding this behaviour, Brian Tiffin, 2013/09/03
- Re: [open-cobol-list] Help understanding this behaviour, Patrick, 2013/09/03
- Re: [open-cobol-list] Help understanding this behaviour, Vincent Coen, 2013/09/07
- Re: [open-cobol-list] Help understanding this behaviour, Paul, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Paul, 2013/09/01
- Re: [open-cobol-list] Help understanding this behaviour, Michael Anderson, 2013/09/01