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)

Comment Type & Canned Response:
       No canned response available


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


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.9