Gửi #558121: scipopt scip v.9.2.1 Missing Release of File Descriptor or Handle after Effective Lifthông tin

tiêu đềscipopt scip v.9.2.1 Missing Release of File Descriptor or Handle after Effective Lif
Mô tả A potential missing release of the file Scriptor or handle after the effective lifetime is in examples/LOP/src/genRandomLOPInstance.c#L106 here is the source code starting from line 106. ```c file = fopen(argv[1], "w"); // this variable is not been released. if ( file == NULL ) { printf("Could not open file %s.\n", argv[1]); return 1; } /* write comment line and size*/ fprintf(file, "Randomly generated LOP instance.\n"); fprintf(file, "%d\n", n); for (i = 0; i < n; ++i) { for (j = 0; j < n; ++j) fprintf(file, "%d ", getRandomInt(0, d, &seed)); fprintf(file, "\n"); } printf("Wrote random LOP instance to %s\n", argv[1]); printf("Size: %d\n", n); printf("Entries: {0, ..., %d}\n", d); return 0; } ``` the developer has verified the issue.
Nguồn⚠️ https://github.com/scipopt/scip/issues/130
Người dùng
 micromilo (UID 84159)
Đệ trình15/04/2025 09:37 (cách đây 1 Năm)
Kiểm duyệt26/04/2025 10:27 (11 days later)
Trạng tháiđược chấp nhận
Mục VulDB306337 [scipopt scip đến 9.2.1 File Descriptor genRandomLOPInstance.c main Tệp tin Từ chối dịch vụ]
điểm20

Do you need the next level of professionalism?

Upgrade your account now!