bugTiny C Compiler - Bugs: bug #53386, bounds check extranous behavior...

 
 

bug #53386: bounds check extranous behavior in windows 7 (win64)

Submitter:  None
Submitted:  Mon 19 Mar 2018 05:26:17 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 29 Nov 2022 06:41:47 PM UTC, comment #1: 

I tried it and it now works.
Please use:
git clone git://repo.or.cz/tinycc.git

Herman ten Brugge <hermantb>
Mon 19 Mar 2018 05:26:17 PM UTC, original submission:  

Program (test.c)

#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char **argv)
{
    size_t i;

printf("argc = %d\n", argc);

for(i = 0; i < argc; ++i)
printf("argv[%d] = %s\n", i, argv[i]);

    return 0;
}

run command

tcc -b -run test.c p1 p2

Result

argc = 3
../lib/bcheck.c __bound_ptr_indir8: 000007FEFDE6AA48 is outside of the region
Runtime error: access violation
test.c:12: at 0000000002BE0851 main()
by 0000000002BE09D9 _runmain()

When run without -b (Bounds Check) no problem

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hermantb (Posted a comment)
  •  

    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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-efe6.
    Corresponding source code