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


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

Submitted by:  None
Submitted on:  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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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


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



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.5