File size: 65,270 Bytes
2ef05ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
# SecureCodePairs Validation Report

**Status:** PASS

- Total records: 470
- Errors: 0 | Warnings: 250

## Errors
(none)

## Warnings
- SCP-000197: vulnerable_code [Java] /tmp/tmpsh18ffys.java:1: error: cannot find symbol
String filter = "(&(uid=" + user + ")(password=" + pw + "))";  // Vulnerable
                            ^
  symbol:   variable user
  location: class tmpsh18ffys
/tmp/tmpsh18ffys.java:1: error: cannot find symbol
String filter = "(&(uid=" + user + 
- SCP-000197: secure_code [Java] /tmp/tmp3t29q5fg.java:1: error: cannot find symbol
String filter = "(&(uid=" + LdapEncoder.filterEncode(user) + ")(password=" + LdapEncoder.filterEncode(pw) + "))";  // Secure
                                                     ^
  symbol:   variable user
  location: class tmp3t29q5fg
/tmp/tmp3t29q
- SCP-000100: vulnerable_code [Go] /tmp/tmph8o48heq.go:1:1: expected 'package', found rules

- SCP-000100: secure_code [Go] /tmp/tmpb3qke3yq.go:1:1: expected 'package', found rules

- SCP-000276: vulnerable_code [C++] /tmp/tmpw8fyf89b.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type
    1 | std::string q = "SELECT * FROM u WHERE name='" + name + "'";
      |      ^~~~~~
/tmp/tmpw8fyf89b.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <stri
- SCP-000276: secure_code [C++] /tmp/tmpm473dtp_.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type
    1 | std::string q = "SELECT * FROM u WHERE name = ?";
      |      ^~~~~~
/tmp/tmpm473dtp_.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <string>’
  +++ 
- SCP-000289: vulnerable_code [C++] /tmp/tmpvywlps60.cpp:1:6: error: variable or field ‘add’ declared void
    1 | void add(Order& o, double price) {
      |      ^~~
/tmp/tmpvywlps60.cpp:1:10: error: ‘Order’ was not declared in this scope
    1 | void add(Order& o, double price) {
      |          ^~~~~
/tmp/tmpvywlps60.cpp:1:17: err
- SCP-000289: secure_code [C++] /tmp/tmp2h48guwn.cpp:1:6: error: variable or field ‘add’ declared void
    1 | void add(Order& o, double price) {
      |      ^~~
/tmp/tmp2h48guwn.cpp:1:10: error: ‘Order’ was not declared in this scope
    1 | void add(Order& o, double price) {
      |          ^~~~~
/tmp/tmp2h48guwn.cpp:1:17: err
- SCP-000478: vulnerable_code [C] /tmp/tmpexg3zl04.c:2:1: warning: data definition has no type or storage class
    2 | gets(buf);  // no bound
      | ^~~~
/tmp/tmpexg3zl04.c:2:1: error: type defaults to ‘int’ in declaration of ‘gets’ [-Wimplicit-int]
/tmp/tmpexg3zl04.c:2:1: error: parameter names (without types) in function declar
- SCP-000478: secure_code [C] /tmp/tmp8b0ap4xl.c:2:1: error: expected identifier or ‘(’ before ‘if’
    2 | if (!fgets(buf, sizeof buf, stdin)) return;  // bounded
      | ^~

- SCP-000274: secure_code [C++] /tmp/tmpp3yxtas1.cpp:1:6: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
    1 | std::unique_ptr<int> leak() {
      |      ^~~~~~~~~~
/tmp/tmpp3yxtas1.cpp:1:1: note: ‘std::unique_ptr’ is defined in header ‘<memory>’; this is probably fixable by adding ‘#include <memory>’
  +++
- SCP-000199: vulnerable_code [Rust] error[E0425]: cannot find type `Q` in this scope
 --> /tmp/tmp3y9k6pay.rs:1:27
  |
1 | async fn go(q: web::Query<Q>) -> impl Responder {
  |                           ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn go<Q>(q: web::Query<Q>) -> impl Responder 
- SCP-000199: secure_code [Rust] error[E0425]: cannot find type `Q` in this scope
 --> /tmp/tmpztoqhwc3.rs:1:27
  |
1 | async fn go(q: web::Query<Q>) -> impl Responder {
  |                           ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn go<Q>(q: web::Query<Q>) -> impl Responder 
- SCP-000376: vulnerable_code [Rust] error: expected item, found keyword `unsafe`
 --> /tmp/tmpkv9ebd0e.rs:1:1
  |
1 | unsafe { let v = *ptr; }  // Vulnerable: unchecked raw ptr\
  | ^^^^^^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: abort
- SCP-000376: secure_code [Rust] error: expected item, found keyword `if`
 --> /tmp/tmpb06kedrk.rs:1:1
  |
1 | if let Some(v) = ptr.as_ref() { /* use v */ }  // Secure: safe wrapper\
  | ^^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: a
- SCP-000474: vulnerable_code [Java] /tmp/tmpbq63b459.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
int otp = (int)(Math.random() * 1000000);
^
1 error

- SCP-000474: secure_code [Java] /tmp/tmpi6_z8any.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
int otp = new SecureRandom().nextInt(1000000);
^
1 error

- SCP-000169: vulnerable_code [Rust] error[E0425]: cannot find type `Db` in this scope
 --> /tmp/tmplqj46pg5.rs:1:52
  |
1 | async fn get(p: web::Path<String>, data: web::Data<Db>) -> impl Responder {
  |                                                    ^^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 
- SCP-000169: secure_code [Rust] error[E0425]: cannot find type `AuthUser` in this scope
 --> /tmp/tmpfk0ob3jh.rs:1:17
  |
1 | async fn get(u: AuthUser, p: web::Path<String>, data: web::Data<Db>) -> impl Responder {
  |                 ^^^^^^^^ not found in this scope

error[E0425]: cannot find type `Db` in this scope
 --> /tmp/tmp
- SCP-000105: vulnerable_code [C] /tmp/tmppgmsppud.c:1:18: error: unknown type name ‘uint8_t’
    1 | void flash(const uint8_t *img, size_t len) {
      |                  ^~~~~~~
/tmp/tmppgmsppud.c:1:1: note: ‘uint8_t’ is defined in header ‘<stdint.h>’; this is probably fixable by adding ‘#include <stdint.h>’
  +++ |+#include <stdi
- SCP-000105: secure_code [C] /tmp/tmptimdhtfc.c:1:18: error: unknown type name ‘uint8_t’
    1 | void flash(const uint8_t *img, size_t len) {
      |                  ^~~~~~~
/tmp/tmptimdhtfc.c:1:1: note: ‘uint8_t’ is defined in header ‘<stdint.h>’; this is probably fixable by adding ‘#include <stdint.h>’
  +++ |+#include <stdi
- SCP-000272: vulnerable_code [C++] /tmp/tmpzauj5x9o.cpp:1:6: error: variable or field ‘copy’ declared void
    1 | void copy(std::string in) {
      |      ^~~~
/tmp/tmpzauj5x9o.cpp:1:16: error: ‘string’ is not a member of ‘std’
    1 | void copy(std::string in) {
      |                ^~~~~~
/tmp/tmpzauj5x9o.cpp:1:1: note: ‘std::st
- SCP-000272: secure_code [C++] /tmp/tmpm6h7o6au.cpp:4:20: warning: multi-character character constant [-Wmultichar]
    4 |   buf[in.size()] = '00';
      |                    ^~~~
/tmp/tmpm6h7o6au.cpp:1:6: error: variable or field ‘copy’ declared void
    1 | void copy(std::string in) {
      |      ^~~~
/tmp/tmpm6h7o6au.cpp:1:1
- SCP-000122: vulnerable_code [Rust] error[E0425]: cannot find type `Req` in this scope
 --> /tmp/tmpv0s9kgks.rs:1:30
  |
1 | async fn parse(q: web::Query<Req>) -> impl Responder {
  |                              ^^^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn parse<Req>(q: web::Query<Req>)
- SCP-000122: secure_code [Rust] error[E0425]: cannot find type `Req` in this scope
 --> /tmp/tmpgwf8kvpy.rs:1:30
  |
1 | async fn parse(q: web::Query<Req>) -> impl Responder {
  |                              ^^^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn parse<Req>(q: web::Query<Req>)
- SCP-000148: vulnerable_code [C++] /tmp/tmp7hatbvbn.cpp:1:20: error: ‘malloc’ was not declared in this scope
    1 | char *buf = (char*)malloc(64);
      |                    ^~~~~~
/tmp/tmp7hatbvbn.cpp:1:1: note: ‘malloc’ is defined in header ‘<cstdlib>’; this is probably fixable by adding ‘#include <cstdlib>’
  +++ |+#include <cstd
- SCP-000148: secure_code [C++] /tmp/tmpufj7imx9.cpp:1:6: error: ‘vector’ in namespace ‘std’ does not name a template type
    1 | std::vector<char> buf(64);  // Secure: RAII, no manual free
      |      ^~~~~~
/tmp/tmpufj7imx9.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; this is probably fixable by adding ‘#inclu
- SCP-000236: vulnerable_code [Java] /tmp/tmppsv4bxh2.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
private static final String KEY = "sk_live_1a2b3c4d";  // Vulnerable
^
1 error

- SCP-000236: secure_code [Java] /tmp/tmp3r27god0.java:1: error: cannot find symbol
@Value("${PAYMENT_API_KEY}")  // Secure: from env/secret
 ^
  symbol:   class Value
  location: class tmp3r27god0
/tmp/tmp3r27god0.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
@V
- SCP-000364: secure_code [PHP] bracket mismatch
- SCP-000453: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmprj09uhea.rs:1:14
  |
1 | Schema::build(Query, EmptyMutation, EmptySubscription).finish()
  |              ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000453: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp_b6qr58u.rs:1:1
  |
1 | let schema = Schema::build(...).finish();
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full list of items that can appear in
- SCP-000307: vulnerable_code [Go] /tmp/tmpiixaxb2k.go:1:1: expected 'package', found out

- SCP-000307: secure_code [Go] /tmp/tmp4a489kg8.go:1:1: expected 'package', found 'if'

- SCP-000258: vulnerable_code [C] /tmp/tmpt3biwww2.c: In function ‘proc’:
/tmp/tmpt3biwww2.c:2:12: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    2 |   int *p = malloc(8); *p = 1;
      |            ^~~~~~
/tmp/tmpt3biwww2.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’

- SCP-000258: secure_code [C] /tmp/tmp6t4g7qak.c: In function ‘proc’:
/tmp/tmp6t4g7qak.c:2:12: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    2 |   int *p = malloc(8); *p = 1;
      |            ^~~~~~
/tmp/tmp6t4g7qak.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’

- SCP-000231: vulnerable_code [Java] /tmp/tmp05usdk0u.java:2: error: cannot find symbol
PreparedStatement ps = c.prepareStatement(sql);  // Vulnerable
^
  symbol:   class PreparedStatement
  location: class tmp05usdk0u
/tmp/tmp05usdk0u.java:1: error: cannot find symbol
String sql = "SELECT * FROM u WHERE name='" + name + "'";
         
- SCP-000231: secure_code [Java] /tmp/tmpyfz9qlnu.java:3: error: class, interface, annotation type, enum, record, method or field expected
ps.setString(1, name);  // Secure
^
1 error

- SCP-000018: vulnerable_code [JavaScript] /tmp/tmp7frlcz2q.js:1
@Controller('transfer')
^

SyntaxError: Invalid or unexpected token
    at wrapSafe (node:internal/modules/cjs/loader:1637:18)
    at checkSyntax (node:internal/main/check_syntax:78:3)

Node.js v22.22.1

- SCP-000018: secure_code [JavaScript] /tmp/tmp81tned8y.js:1
@Controller('transfer')
^

SyntaxError: Invalid or unexpected token
    at wrapSafe (node:internal/modules/cjs/loader:1637:18)
    at checkSyntax (node:internal/main/check_syntax:78:3)

Node.js v22.22.1

- SCP-000262: vulnerable_code [C] /tmp/tmpjjzuo3t3.c: In function ‘save’:
/tmp/tmpjjzuo3t3.c:2:12: error: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
    2 |   int fd = open("/tmp/data.txt", O_WRONLY|O_CREAT, 0644);  // Vulnerable: predictable
      |            ^~~~
/tmp/tmpjjzuo3t3.c:2:34: error: ‘O_W
- SCP-000262: secure_code [C] /tmp/tmp_4mfee7j.c: In function ‘save’:
/tmp/tmp_4mfee7j.c:3:12: error: implicit declaration of function ‘mkstemp’ [-Wimplicit-function-declaration]
    3 |   int fd = mkstemp(tmpl);  // Secure: unpredictable
      |            ^~~~~~~
/tmp/tmp_4mfee7j.c:4:3: error: implicit declaration of function 
- SCP-000372: vulnerable_code [Rust] error: expected item, found `.`
 --> /tmp/tmp9ly6h7n1.rs:1:1
  |
1 | .route("/login", web::post().to(login))  // Vulnerable: no throttle\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due t
- SCP-000372: secure_code [Rust] error: expected item, found `.`
 --> /tmp/tmp_f_ef3zl.rs:1:1
  |
1 | .route("/login", web::post().to(login)).wrap(RateLimiter::new(5, 60))  // Secure\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: a
- SCP-000264: vulnerable_code [C] /tmp/tmplr2nz_y0.c:1:11: error: unknown type name ‘User’
    1 | void show(User *u) {
      |           ^~~~

- SCP-000264: secure_code [C] /tmp/tmp1s013vys.c:1:11: error: unknown type name ‘User’
    1 | void show(User *u) {
      |           ^~~~

- SCP-000321: vulnerable_code [Go] /tmp/tmpwq9ougj7.go:1:1: expected 'package', found acc

- SCP-000321: secure_code [Go] /tmp/tmpdvfvgabs.go:1:1: expected 'package', found acc

- SCP-000142: vulnerable_code [Rust] error[E0425]: cannot find type `Q` in this scope
 --> /tmp/tmp2o3n7dwy.rs:1:29
  |
1 | async fn find(q: web::Query<Q>) -> impl Responder {
  |                             ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn find<Q>(q: web::Query<Q>) -> impl Resp
- SCP-000142: secure_code [Rust] error[E0425]: cannot find type `Q` in this scope
 --> /tmp/tmplvec6qiq.rs:1:29
  |
1 | async fn find(q: web::Query<Q>) -> impl Responder {
  |                             ^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn find<Q>(q: web::Query<Q>) -> impl Resp
- SCP-000385: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmp81o857sd.rs:1:34
  |
1 | HttpResponse::InternalServerError().body(format!("err: {}", e))  // Vulnerable: leaks\
  |                                  ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000385: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmpf1ihk54a.rs:1:27
  |
1 | log::error!("err: {}", e);\nHttpResponse::InternalServerError().body("internal_error")  // Secure\
  |                           ^

error: expected one of `!` or `::`, found `(`
 --> /tmp/tmpf1ihk54a.rs:1:62
  |
1 | log::error!("
- SCP-000242: vulnerable_code [Ruby] ruby: /tmp/tmpty3jne1_.rb:2: syntax error, unexpected local variable or method, expecting `end' or dummy end (SyntaxError)
  ``ping -c1 #{host}``  # Vulnerable:...
    ^~~~


- SCP-000235: vulnerable_code [Java] /tmp/tmp9mk093qg.java:2: error: cannot find symbol
public void delete(@PathVariable Long id) {  // Vulnerable: no role check
                    ^
  symbol:   class PathVariable
  location: class tmp9mk093qg
/tmp/tmp9mk093qg.java:1: error: cannot find symbol
@DeleteMapping("/admin/user/{id}")
 ^
  s
- SCP-000235: secure_code [Java] /tmp/tmpjfbb1r5c.java:3: error: cannot find symbol
public void delete(@PathVariable Long id) {
                    ^
  symbol:   class PathVariable
  location: class tmpjfbb1r5c
/tmp/tmpjfbb1r5c.java:1: error: cannot find symbol
@PreAuthorize("hasRole('ADMIN')")  // Secure
 ^
  symbol:   class PreAu
- SCP-000103: vulnerable_code [C] /tmp/tmp_a7cl01n.c: In function ‘on_message’:
/tmp/tmp_a7cl01n.c:3:9: error: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
    3 |     if (strcmp(topic, "device/cmd") == 0) actuate(payload);
      |         ^~~~~~
/tmp/tmp_a7cl01n.c:1:1: note: include ‘<string.h>’ or pr
- SCP-000103: secure_code [C] /tmp/tmpt0bzzynu.c:1:45: error: unknown type name ‘mqtt_conn’
    1 | void on_message(char *topic, char *payload, mqtt_conn *c) {
      |                                             ^~~~~~~~~

- SCP-000472: vulnerable_code [Ruby] ruby: /tmp/tmps29cer22.rb:1: unterminated regexp meets end of file (SyntaxError)
...e(params[:user])  // role bound
...                               ^


- SCP-000259: vulnerable_code [C] /tmp/tmpmbd0zfp1.c:1:12: error: unknown type name ‘size_t’
    1 | void *make(size_t n, size_t sz) {
      |            ^~~~~~
/tmp/tmpmbd0zfp1.c:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
  +++ |+#include <stddef.h>
    1 | void *
- SCP-000259: secure_code [C] /tmp/tmpx1esut0c.c:1:12: error: unknown type name ‘size_t’
    1 | void *make(size_t n, size_t sz) {
      |            ^~~~~~
/tmp/tmpx1esut0c.c:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
  +++ |+#include <stddef.h>
    1 | void *
- SCP-000158: vulnerable_code [C] /tmp/tmpdt2ocuxv.c:1:11: error: unknown type name ‘size_t’
    1 | void *buf(size_t n) {
      |           ^~~~~~
/tmp/tmpdt2ocuxv.c:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
  +++ |+#include <stddef.h>
    1 | void *buf(size_t n)
- SCP-000158: secure_code [C] /tmp/tmp2zz6v5gz.c:1:11: error: unknown type name ‘size_t’
    1 | void *buf(size_t n) {
      |           ^~~~~~
/tmp/tmp2zz6v5gz.c:1:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
  +++ |+#include <stddef.h>
    1 | void *buf(size_t n)
- SCP-000010: vulnerable_code [Java] /tmp/tmp3rwh1ah3.java:1: error: cannot find symbol
public Claims parseToken(String token) {
       ^
  symbol:   class Claims
  location: class tmp3rwh1ah3
/tmp/tmp3rwh1ah3.java:3: error: cannot find symbol
    return Jwts.parser()
           ^
  symbol:   variable Jwts
  location: class tmp3rwh1ah3
- SCP-000010: secure_code [Java] /tmp/tmp9yd0y5r3.java:1: error: cannot find symbol
public Claims parseToken(String token, String secret) {
       ^
  symbol:   class Claims
  location: class tmp9yd0y5r3
/tmp/tmp9yd0y5r3.java:3: error: cannot find symbol
    return Jwts.parserBuilder()
           ^
  symbol:   variable Jwts
  locat
- SCP-000261: vulnerable_code [C] /tmp/tmpllgsfsv0.c: In function ‘run’:
/tmp/tmpllgsfsv0.c:3:3: error: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
    3 |   sprintf(cmd, "convert %s out.png", f);
      |   ^~~~~~~
/tmp/tmpllgsfsv0.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘sprintf
- SCP-000261: secure_code [C] /tmp/tmpp0xfcf51.c: In function ‘run’:
/tmp/tmpp0xfcf51.c:2:7: error: implicit declaration of function ‘strpbrk’ [-Wimplicit-function-declaration]
    2 |   if (strpbrk(f, ";|&$'"") != NULL) return;  // Secure: validate
      |       ^~~~~~~
/tmp/tmpp0xfcf51.c:1:1: note: include ‘<string.h>’ or prov
- SCP-000282: vulnerable_code [C++] /tmp/tmp40czi2gf.cpp:1:6: error: variable or field ‘save’ declared void
    1 | void save(std::string d) {
      |      ^~~~
/tmp/tmp40czi2gf.cpp:1:16: error: ‘string’ is not a member of ‘std’
    1 | void save(std::string d) {
      |                ^~~~~~
/tmp/tmp40czi2gf.cpp:1:1: note: ‘std::stri
- SCP-000282: secure_code [C++] /tmp/tmpoa0gges_.cpp: In function ‘void save(std::string)’:
/tmp/tmpoa0gges_.cpp:4:20: error: variable ‘std::ofstream f’ has initializer but incomplete type
    4 |   std::ofstream f(p); f << d;
      |                    ^
/tmp/tmpoa0gges_.cpp:2:1: note: ‘std::ofstream’ is defined in header ‘<fstre
- SCP-000287: vulnerable_code [C++] /tmp/tmp6qjykufp.cpp:1:1: error: expected unqualified-id before ‘for’
    1 | for (size_t i = 0; i <= v.size(); i++) {  // Vulnerable: <= off-by-one
      | ^~~
/tmp/tmp6qjykufp.cpp:1:20: error: ‘i’ does not name a type
    1 | for (size_t i = 0; i <= v.size(); i++) {  // Vulnerable: <= off-by-one
 
- SCP-000287: secure_code [C++] /tmp/tmptv78er1g.cpp:1:1: error: expected unqualified-id before ‘for’
    1 | for (size_t i = 0; i < v.size(); i++) {  // Secure: < not <=
      | ^~~
/tmp/tmptv78er1g.cpp:1:20: error: ‘i’ does not name a type
    1 | for (size_t i = 0; i < v.size(); i++) {  // Secure: < not <=
      |              
- SCP-000192: vulnerable_code [C++] /tmp/tmpnyg9lhjm.cpp:1:1: error: ‘spdlog’ does not name a type
    1 | spdlog::info(user_msg);  // Vulnerable: format string
      | ^~~~~~

- SCP-000192: secure_code [C++] /tmp/tmpv80fguhv.cpp:1:1: error: ‘spdlog’ does not name a type
    1 | spdlog::info("{}", user_msg);  // Secure: positional
      | ^~~~~~

- SCP-000308: vulnerable_code [Go] /tmp/tmpmtio0ppr.go:1:1: expected 'package', found c

- SCP-000308: secure_code [Go] /tmp/tmpw6vrvb27.go:1:1: expected 'package', found name

- SCP-000153: vulnerable_code [Java] /tmp/tmpluqi6lwj.java:1: error: illegal character: '#'
# application.properties
^
/tmp/tmpluqi6lwj.java:1: error: class, interface, annotation type, enum, record, method or field expected
# application.properties
             ^
/tmp/tmpluqi6lwj.java:2: error: illegal character: '#'
spring.datasource
- SCP-000153: secure_code [Java] /tmp/tmpwili2owv.java:1: error: illegal character: '#'
# application.properties
^
/tmp/tmpwili2owv.java:1: error: class, interface, annotation type, enum, record, method or field expected
# application.properties
             ^
/tmp/tmpwili2owv.java:2: error: illegal character: '#'
spring.datasource
- SCP-000270: vulnerable_code [C] /tmp/tmpw_vdnn2p.c:1:1: warning: data definition has no type or storage class
    1 | SSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, NULL);  // Vulnerable: no verify
      | ^~~~~~~~~~~~~~~~~~
/tmp/tmpw_vdnn2p.c:1:1: error: type defaults to ‘int’ in declaration of ‘SSL_CTX_set_verify’ [-Wimplicit-int]
/tm
- SCP-000270: secure_code [C] /tmp/tmp6q1xww_5.c:1:1: warning: data definition has no type or storage class
    1 | SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, NULL);  // Secure: verify peer
      | ^~~~~~~~~~~~~~~~~~
/tmp/tmp6q1xww_5.c:1:1: error: type defaults to ‘int’ in declaration of ‘SSL_CTX_set_verify’ [-Wimplicit-int]
/tmp/
- SCP-000267: vulnerable_code [C] /tmp/tmpt8uaydsa.c: In function ‘tok’:
/tmp/tmpt8uaydsa.c:3:3: error: implicit declaration of function ‘sprintf’ [-Wimplicit-function-declaration]
    3 |   sprintf(t, "%ld", random());  // Vulnerable: weak
      |   ^~~~~~~
/tmp/tmpt8uaydsa.c:1:1: note: include ‘<stdio.h>’ or provide a declaration 
- SCP-000233: vulnerable_code [Java] /tmp/tmp2ihkg87f.java:1: error: cannot find symbol
XMLDecoder d = new XMLDecoder(inputStream);
^
  symbol:   class XMLDecoder
  location: class tmp2ihkg87f
/tmp/tmp2ihkg87f.java:1: error: cannot find symbol
XMLDecoder d = new XMLDecoder(inputStream);
                   ^
  symbol:   class XMLDecoder
- SCP-000233: secure_code [Java] /tmp/tmpcg7ny_of.java:1: error: cannot find symbol
JAXBContext ctx = JAXBContext.newInstance(Dto.class);
^
  symbol:   class JAXBContext
  location: class tmpcg7ny_of
/tmp/tmpcg7ny_of.java:2: error: cannot find symbol
Dto o = (Dto) ctx.createUnmarshaller().unmarshal(safeSource);  // Secure
^
  symbo
- SCP-000479: vulnerable_code [Go] /tmp/tmpp77yn512.go:1:1: expected 'package', found c

- SCP-000479: secure_code [Go] /tmp/tmpggatx7_1.go:2:1: expected 'package', found c

- SCP-000281: secure_code [C++] /tmp/tmpuit2x9d1.cpp: In function ‘void run()’:
/tmp/tmpuit2x9d1.cpp:2:17: error: ‘make_unique’ is not a member of ‘std’
    2 |   auto p = std::make_unique<int>(1);  // Secure: RAII
      |                 ^~~~~~~~~~~
/tmp/tmpuit2x9d1.cpp:1:1: note: ‘std::make_unique’ is defined in header ‘<memory>
- SCP-000316: vulnerable_code [Go] /tmp/tmp97jza1o1.go:1:1: expected 'package', found 'type'

- SCP-000316: secure_code [Go] /tmp/tmpf3mi_gkm.go:1:1: expected 'package', found 'type'

- SCP-000057: vulnerable_code [Ruby] ruby: /tmp/tmpnya6m969.rb:1: syntax error, unexpected '<' (SyntaxError)
<!-- greeting.html.erb -->
^


- SCP-000057: secure_code [Ruby] ruby: /tmp/tmpgwc0x254.rb:1: syntax error, unexpected '<' (SyntaxError)
<!-- greeting.html.erb -->
^


- SCP-000071: vulnerable_code [C++] /tmp/tmp0f4qakck.cpp:1:10: fatal error: pugixml.hpp: No such file or directory
    1 | #include <pugixml.hpp>
      |          ^~~~~~~~~~~~~
compilation terminated.

- SCP-000071: secure_code [C++] /tmp/tmpo37nt3v2.cpp:1:10: fatal error: pugixml.hpp: No such file or directory
    1 | #include <pugixml.hpp>
      |          ^~~~~~~~~~~~~
compilation terminated.

- SCP-000373: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp3_aid_ot.rs:1:1
  |
1 | let token = decode::<Claims>(&t, &key, &Validation::new(Algorithm::HS256));  // Vulnerable if alg not pinned strictly\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `cons
- SCP-000373: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmpfpxexuja.rs:1:47
  |
1 | let mut v = Validation::new(Algorithm::HS256);\nv.validate_nbf = true;\nlet token = decode::<Claims>(&t, &key, &v);  // Secure: strict\
  |                                               ^

error: unknown start of token: \
 --> /t
- SCP-000309: vulnerable_code [Go] /tmp/tmpidicavl0.go:1:1: expected 'package', found r

- SCP-000309: secure_code [Go] /tmp/tmpokw4l71h.go:1:1: expected 'package', found r

- SCP-000310: vulnerable_code [Go] /tmp/tmpblf1ljey.go:1:1: expected 'package', found 'const'

- SCP-000310: secure_code [Go] /tmp/tmpunbfegjf.go:1:1: expected 'package', found 'var'

- SCP-000455: vulnerable_code [Go] /tmp/tmpw_65hwbd.go:1:1: expected 'package', found s

- SCP-000455: secure_code [Go] /tmp/tmpw3kajdel.go:1:1: expected 'package', found s

- SCP-000266: vulnerable_code [C] /tmp/tmp7g41np0_.c: In function ‘read_line’:
/tmp/tmp7g41np0_.c:3:3: error: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
    3 |   gets(buf);  // Vulnerable: no bound
      |   ^~~~

- SCP-000266: secure_code [C] /tmp/tmpwvlmnun_.c: In function ‘read_line’:
/tmp/tmpwvlmnun_.c:3:7: error: implicit declaration of function ‘fgets’ [-Wimplicit-function-declaration]
    3 |   if (fgets(buf, sizeof buf, stdin) == NULL) return;  // Secure: bounded
      |       ^~~~~
/tmp/tmpwvlmnun_.c:3:30: error: ‘stdin’ undeclar
- SCP-000375: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmps51hch1i.rs:1:20
  |
1 | HttpResponse::Found().insert_header(("Location", url)).finish()  // Vulnerable\
  |                    ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000375: secure_code [Rust] error: expected item, found keyword `if`
 --> /tmp/tmp1cbw341q.rs:1:1
  |
1 | if !(url.starts_with("/") && !url.starts_with("//")) { url = "/".into(); }  // Secure\nHttpResponse::Found().insert_header(("Location...
  | ^^ expected item
  |
  = note: for a full list of items that can appear in module
- SCP-000367: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmppzyqvvnj.rs:1:1
  |
1 | let out = Command::new("sh").arg("-c").arg(format!("ping -c1 {}", host)).output();  // Vulnerable\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`

- SCP-000367: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmpsnk15uwn.rs:1:70
  |
1 | if !valid_host(&host) { return HttpResponse::BadRequest().finish(); }\nlet out = Command::new("ping").arg("-c1").arg(&host).output();...
  |                                                                      ^

error: expected 
- SCP-000109: vulnerable_code [Python] invalid syntax (<unknown>, line 1)
- SCP-000109: secure_code [Python] invalid syntax (<unknown>, line 1)
- SCP-000206: vulnerable_code [Java] /tmp/tmpn_w9lw_6.java:1: error: class, interface, annotation type, enum, record, method or field expected
management.endpoints.web.exposure.include=*  # Vulnerable: no auth
^
/tmp/tmpn_w9lw_6.java:1: error: illegal character: '#'
management.endpoints.web.exposure.include=*  # Vulnerable: no auth
   
- SCP-000206: secure_code [Java] /tmp/tmpsi3uq_9u.java:1: error: class, interface, annotation type, enum, record, method or field expected
management.endpoints.web.exposure.include=health,info
^
/tmp/tmpsi3uq_9u.java:3: error: unclosed comment
spring.security.include ... /actuator/** requires ADMIN
                                 
- SCP-000448: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpg1yilkp_.rs:1:1
  |
1 | let v: MyStruct = ron::de::from_bytes(&body)?;
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full list of items that can appe
- SCP-000448: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmphebe3raa.rs:1:1
  |
1 | let v: MyStruct = serde_json::from_slice(&body)?;  // strict schema
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full list o
- SCP-000247: vulnerable_code [Ruby] ruby: /tmp/tmpdgnwe0m8.rb:1: syntax error, unexpected ':', expecting end-of-input (SyntaxError)
production:
          ^


- SCP-000247: secure_code [Ruby] ruby: /tmp/tmpo790bhse.rb:1: syntax error, unexpected ':', expecting end-of-input (SyntaxError)
production:
          ^


- SCP-000284: vulnerable_code [C++] /tmp/tmpwj52h_mn.cpp:1:6: error: variable or field ‘show’ declared void
    1 | void show(User* u) {
      |      ^~~~
/tmp/tmpwj52h_mn.cpp:1:11: error: ‘User’ was not declared in this scope
    1 | void show(User* u) {
      |           ^~~~
/tmp/tmpwj52h_mn.cpp:1:17: error: ‘u’ was not declared in
- SCP-000284: secure_code [C++] /tmp/tmp64f9zscf.cpp:1:6: error: variable or field ‘show’ declared void
    1 | void show(User* u) {
      |      ^~~~
/tmp/tmp64f9zscf.cpp:1:11: error: ‘User’ was not declared in this scope
    1 | void show(User* u) {
      |           ^~~~
/tmp/tmp64f9zscf.cpp:1:17: error: ‘u’ was not declared in
- SCP-000088: vulnerable_code [Java] /tmp/tmp1wj0tdge.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
public BigDecimal interest(double principal, double rate) {
^
1 error

- SCP-000088: secure_code [Java] /tmp/tmp6jkgmuo3.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
public BigDecimal interest(BigDecimal principal, BigDecimal rate) {
^
1 error

- SCP-000037: vulnerable_code [Rust] error[E0425]: cannot find type `Item` in this scope
 --> /tmp/tmpvotkby2a.rs:1:32
  |
1 | async fn create(req: web::Json<Item>) -> impl Responder {
  |                                ^^^^ not found in this scope
  |
help: you might be missing a type parameter
  |
1 | async fn create<Item>(req: web::
- SCP-000037: secure_code [Rust] error[E0433]: cannot find module or crate `serde_json` in this scope
 --> /tmp/tmpvvuyvqs3.rs:6:54
  |
6 |             HttpResponse::InternalServerError().json(serde_json::json!({"error":"internal"}))
  |                                                      ^^^^^^^^^^ use of unresolved module or unl
- SCP-000108: vulnerable_code [C++] /tmp/tmp64q5ck48.cpp:1:32: error: ‘string’ in namespace ‘std’ does not name a type
    1 | void send_telemetry(const std::string& data) {
      |                                ^~~~~~
/tmp/tmp64q5ck48.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#
- SCP-000108: secure_code [C++] /tmp/tmp3lg_hadq.cpp:1:32: error: ‘string’ in namespace ‘std’ does not name a type
    1 | void send_telemetry(const std::string& data) {
      |                                ^~~~~~
/tmp/tmp3lg_hadq.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#
- SCP-000084: vulnerable_code [Go] /tmp/tmpplkr57cf.go:1:1: expected 'package', found s

- SCP-000084: secure_code [Go] /tmp/tmp9ug_zbik.go:1:1: expected 'package', found s

- SCP-000436: vulnerable_code [Go] /tmp/tmpqrbyl6ak.go:1:1: expected 'package', found acc

- SCP-000436: secure_code [Go] /tmp/tmpb2nsgptk.go:1:1: expected 'package', found tx

- SCP-000036: vulnerable_code [Rust] error[E0601]: `main` function not found in crate `tmpopdh7ub5`
  --> /tmp/tmpopdh7ub5.rs:10:2
   |
10 | }
   |  ^ consider adding a `main` function to `/tmp/tmpopdh7ub5.rs`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.

- SCP-000036: secure_code [Rust] error[E0601]: `main` function not found in crate `tmp706tvl2l`
 --> /tmp/tmp706tvl2l.rs:9:2
  |
9 | }
  |  ^ consider adding a `main` function to `/tmp/tmp706tvl2l.rs`

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0601`.

- SCP-000371: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmp1lyvixs1.rs:1:17
  |
1 | HttpResponse::Ok().content_type("text/html").body(format!("<div>{}</div>", comment))  // Vulnerable\
  |                 ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000371: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpp23axbio.rs:1:1
  |
1 | let esc = html_escape::encode_text(&comment);  // Secure: escape\nHttpResponse::Ok().content_type("text/html").body(format!("<div>{}<...
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using
- SCP-000306: vulnerable_code [Go] /tmp/tmphvxrsbfz.go:1:1: expected 'package', found q

- SCP-000306: secure_code [Go] /tmp/tmp6jhwnzgx.go:1:1: expected 'package', found rows

- SCP-000285: vulnerable_code [C++] /tmp/tmp6p2yuw1m.cpp:1:1: error: ‘ctx’ does not name a type
    1 | ctx->set_verify_mode(boost::asio::ssl::verify_none);  // Vulnerable
      | ^~~

- SCP-000285: secure_code [C++] /tmp/tmp2yq502re.cpp:1:1: error: ‘ctx’ does not name a type
    1 | ctx->set_verify_mode(boost::asio::ssl::verify_peer);  // Secure
      | ^~~
/tmp/tmp2yq502re.cpp:2:1: error: ‘ctx’ does not name a type
    2 | ctx->set_default_verify_paths();
      | ^~~

- SCP-000384: vulnerable_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmp1vq2m8ke.rs:1:15
  |
1 | std::fs::write(format!("/up/{}", fname), data)?;  // Vulnerable: any type\
  |               ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000384: secure_code [Rust] error: expected item, found keyword `if`
 --> /tmp/tmpwayp928p.rs:1:1
  |
1 | if ct != "image/png" && ct != "image/jpeg" { return Err(...); }  // Secure\nlet name = format!("{}.png", Uuid::new_v4());\nstd::fs::w...
  | ^^ expected item
  |
  = note: for a full list of items that can appear in module
- SCP-000136: vulnerable_code [Go] /tmp/tmpzuwco7xp.go:1:1: expected 'package', found c

- SCP-000136: secure_code [Go] /tmp/tmpyq1y32cr.go:1:1: expected 'package', found c

- SCP-000320: vulnerable_code [Go] /tmp/tmp45gah777.go:1:1: expected 'package', found typ

- SCP-000320: secure_code [Go] /tmp/tmpkumje5s6.go:1:1: expected 'package', found ALLOWED

- SCP-000184: vulnerable_code [C] /tmp/tmpcotlogwa.c:1:1: error: expected identifier or ‘(’ before ‘if’
    1 | if (access(path, W_OK) == 0) {  // Vulnerable: TOCTOU
      | ^~

- SCP-000184: secure_code [C] /tmp/tmpez5k61xw.c:1:1: warning: data definition has no type or storage class
    1 | fd = open(path, O_WRONLY);  // Secure: open, then fstat on fd
      | ^~
/tmp/tmpez5k61xw.c:1:1: error: type defaults to ‘int’ in declaration of ‘fd’ [-Wimplicit-int]
/tmp/tmpez5k61xw.c:1:6: error: implicit declara
- SCP-000050: vulnerable_code [Rust] error[E0405]: cannot find trait `Responder` in this scope
 --> /tmp/tmpz2xbxdhq.rs:1:49
  |
1 | async fn upload(mut body: web::Payload) -> impl Responder {
  |                                                 ^^^^^^^^^ not found in this scope

error[E0601]: `main` function not found in crate `tmpz2xb
- SCP-000050: secure_code [Rust] error[E0405]: cannot find trait `Responder` in this scope
 --> /tmp/tmpzz_q0j_a.rs:1:49
  |
1 | async fn upload(mut body: web::Payload) -> impl Responder {
  |                                                 ^^^^^^^^^ not found in this scope

error[E0601]: `main` function not found in crate `tmpzz_q
- SCP-000461: vulnerable_code [Go] /tmp/tmpxdcucvue.go:1:1: expected 'package', found resp

- SCP-000461: secure_code [Go] /tmp/tmpqichmtgj.go:1:1: expected 'package', found u

- SCP-000471: vulnerable_code [Go] /tmp/tmp_wo34r96.go:1:1: expected 'package', found 'var'

- SCP-000471: secure_code [Go] /tmp/tmp78i_8hux.go:1:1: expected 'package', found 'var'

- SCP-000368: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpjyotl2_p.rs:1:1
  |
1 | let path = format!("/data/{}", name);  // Vulnerable: traversal\nactix_files::NamedFile::open(path)?.into_response(&req)\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `c
- SCP-000368: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmp8lf_owkh.rs:1:53
  |
1 | let name = Path::new(&name).file_name().ok_or(404)?;\nlet path = Path::new("/data").join(name);  // Secure: basename\nactix_files::Na...
  |                                                     ^

error: expected item, found keywo
- SCP-000312: vulnerable_code [Go] /tmp/tmpzy70yw1j.go:1:1: expected 'package', found r

- SCP-000312: secure_code [Go] /tmp/tmp2bc935uz.go:1:1: expected 'package', found r

- SCP-000240: vulnerable_code [Java] /tmp/tmpvmzej84x.java:1: error: class, interface, annotation type, enum, record, method or field expected
config.setAllowedOriginPatterns(Arrays.asList("*"));  // Vulnerable
^
/tmp/tmpvmzej84x.java:2: error: class, interface, annotation type, enum, record, method or field expected
config.setAllowCre
- SCP-000240: secure_code [Java] /tmp/tmpnikvryl9.java:1: error: class, interface, annotation type, enum, record, method or field expected
config.setAllowedOrigins(Arrays.asList("https://app.example.com"));  // Secure
^
/tmp/tmpnikvryl9.java:2: error: class, interface, annotation type, enum, record, method or field expected
config.
- SCP-000370: vulnerable_code [Rust] error[E0601]: `main` function not found in crate `tmpwg9sa2ie`
 --> /tmp/tmpwg9sa2ie.rs:1:42
  |
1 | const API_KEY: &str = "sk_live_7b6a5948";  // Vulnerable\
  |                                          ^ consider adding a `main` function to `/tmp/tmpwg9sa2ie.rs`

error: aborting due to 1 previous 
- SCP-000370: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmph3scz3o0.rs:1:1
  |
1 | let api_key = std::env::var("API_KEY").expect("API_KEY");  // Secure: env\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full
- SCP-000377: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp3x02a8lp.rs:1:1
  |
1 | let tok = rand::random::<u64>().to_string();  // Vulnerable if thread_rng weak\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a
- SCP-000377: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmp6q8hyj6b.rs:1:23
  |
1 | use rand::rngs::OsRng;\nlet mut buf = [0u8; 32]; OsRng.fill_bytes(&mut buf);  // Secure: OS CSPRNG\
  |                       ^

error: expected one of `!` or `::`, found keyword `mut`
 --> /tmp/tmp6q8hyj6b.rs:1:29
  |
1 | use ra
- SCP-000102: secure_code [C] /tmp/tmpwvrlaw1v.c:3:1: error: expected identifier or ‘(’ before ‘if’
    3 | if (load_credentials(ssid, psk) != 0) {
      | ^~

- SCP-000319: vulnerable_code [Go] /tmp/tmp99kpx9qq.go:1:1: expected 'package', found 'var'

- SCP-000319: secure_code [Go] /tmp/tmpdjyanx97.go:1:1: expected 'package', found 'var'

- SCP-000269: vulnerable_code [C] /tmp/tmplbyuayry.c:1:1: error: expected identifier or ‘(’ before ‘if’
    1 | if (access(path, R_OK) == 0) { fd = open(path, O_RDONLY); }  // Vulnerable: TOCTOU
      | ^~

- SCP-000269: secure_code [C] /tmp/tmp27mgs9sd.c:1:1: warning: data definition has no type or storage class
    1 | fd = open(path, O_RDONLY);
      | ^~
/tmp/tmp27mgs9sd.c:1:1: error: type defaults to ‘int’ in declaration of ‘fd’ [-Wimplicit-int]
/tmp/tmp27mgs9sd.c:1:6: error: implicit declaration of function ‘open’ [-Wimplicit
- SCP-000112: vulnerable_code [Java] /tmp/tmp9789e1zl.java:1: error: cannot find symbol
public Claims parse(String t) {
       ^
  symbol:   class Claims
  location: class tmp9789e1zl
/tmp/tmp9789e1zl.java:3: error: cannot find symbol
  return Jwts.parser().parseClaimsJwt(t).getBody();
         ^
  symbol:   variable Jwts
  location: c
- SCP-000112: secure_code [Java] /tmp/tmphg2_k6dl.java:1: error: cannot find symbol
public Claims parse(String t, Key k) {
       ^
  symbol:   class Claims
  location: class tmphg2_k6dl
/tmp/tmphg2_k6dl.java:3: error: cannot find symbol
  return Jwts.parserBuilder().setSigningKey(k)
         ^
  symbol:   variable Jwts
  location:
- SCP-000313: vulnerable_code [Go] /tmp/tmpkr_y2mp8.go:1:1: expected 'package', found token

- SCP-000313: secure_code [Go] /tmp/tmpluhnqrz8.go:1:1: expected 'package', found token

- SCP-000290: vulnerable_code [C++] /tmp/tmpdh0i_3fc.cpp:1:6: error: ‘istringstream’ in namespace ‘std’ does not name a type
    1 | std::istringstream iss(data);
      |      ^~~~~~~~~~~~~
/tmp/tmpdh0i_3fc.cpp:1:1: note: ‘std::istringstream’ is defined in header ‘<sstream>’; this is probably fixable by adding ‘#include <sstream>
  +
- SCP-000290: secure_code [C++] /tmp/tmp1asrytdg.cpp:2:30: error: ‘data’ was not declared in this scope
    2 | auto obj = parse_json_strict(data);  // Secure
      |                              ^~~~
/tmp/tmp1asrytdg.cpp:2:12: error: ‘parse_json_strict’ was not declared in this scope
    2 | auto obj = parse_json_strict(data);  /
- SCP-000467: vulnerable_code [Go] /tmp/tmpe0ufqkej.go:1:1: expected 'package', found session

- SCP-000467: secure_code [Go] /tmp/tmpi1wobevj.go:1:1: expected 'package', found old

- SCP-000477: vulnerable_code [Rust] error: expected item, found `.`
 --> /tmp/tmpo6u2jjl4.rs:1:1
  |
1 | .route("/login", web::post().to(login))
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due to 1 previous error


- SCP-000477: secure_code [Rust] error: expected item, found `.`
 --> /tmp/tmph5b9ciue.rs:1:1
  |
1 | .route("/login", web::post().to(login))
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due to 1 previous error


- SCP-000013: vulnerable_code [Java] /tmp/tmpoq2blj8h.java:3: error: cannot find symbol
    log.info("Login attempt user=" + user + " ip=" + ip);
    ^
  symbol:   variable log
  location: class tmpoq2blj8h
/tmp/tmpoq2blj8h.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] arg
- SCP-000013: secure_code [Java] /tmp/tmpquy19gt1.java:5: error: cannot find symbol
    log.info("Login attempt", kv("user", safeUser), kv("ip", safeIp));
    ^
  symbol:   variable log
  location: class tmpquy19gt1
/tmp/tmpquy19gt1.java:5: error: cannot find symbol
    log.info("Login attempt", kv("user", safeUser), kv("ip", safeI
- SCP-000265: secure_code [C] /tmp/tmp_sw3dxo8.c: In function ‘get_pw’:
/tmp/tmp_sw3dxo8.c:1:25: error: implicit declaration of function ‘getenv’ [-Wimplicit-function-declaration]
    1 | char *get_pw() { return getenv("APP_PW"); }  // Secure: from env
      |                         ^~~~~~
/tmp/tmp_sw3dxo8.c:1:1: note: ‘getenv’
- SCP-000383: vulnerable_code [Rust] error: expected one of `!` or `::`, found `.`
 --> /tmp/tmp3iiec4q1.rs:1:4
  |
1 | acc.balance += req.amount;  // Vulnerable: negative allowed\
  |    ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000383: secure_code [Rust] error: expected item, found keyword `if`
 --> /tmp/tmp5vyjo8em.rs:1:1
  |
1 | if req.amount <= 0.0 || req.amount > 1_000_000.0 { return Err(...); }  // Secure\nacc.balance += req.amount;\
  | ^^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-la
- SCP-000035: vulnerable_code [Rust] error[E0433]: cannot find module or crate `actix_files` in this scope
 --> /tmp/tmpsotnmsgj.rs:5:5
  |
5 |     actix_files::NamedFile::open(path)
  |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `actix_files`
  |
  = help: you might be missing a crate named `actix_files`

error[E0425]:
- SCP-000035: secure_code [Rust] error[E0433]: cannot find module or crate `actix_files` in this scope
 --> /tmp/tmp4u72q5gc.rs:8:5
  |
8 |     actix_files::NamedFile::open(target)
  |     ^^^^^^^^^^^ use of unresolved module or unlinked crate `actix_files`
  |
  = help: you might be missing a crate named `actix_files`

error[E0425
- SCP-000188: vulnerable_code [Java] /tmp/tmp9r1m_wfo.java:1: error: cannot find symbol
@Value("sk_live_abc123")  // Vulnerable: hardcoded
 ^
  symbol:   class Value
  location: class tmp9r1m_wfo
/tmp/tmp9r1m_wfo.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
@Value("
- SCP-000188: secure_code [Java] /tmp/tmp6si_wg_i.java:1: error: cannot find symbol
@Value("${GATEWAY_KEY}")  // Secure: from env/secret
 ^
  symbol:   class Value
  location: class tmp6si_wg_i
/tmp/tmp6si_wg_i.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
@Value
- SCP-000315: vulnerable_code [Go] /tmp/tmp2bimalhl.go:1:1: expected 'package', found c

- SCP-000315: secure_code [Go] /tmp/tmp0zir67og.go:1:1: expected 'package', found u

- SCP-000107: vulnerable_code [C] /tmp/tmplbyo2uj4.c: In function ‘parse_header’:
/tmp/tmplbyo2uj4.c:4:5: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
    4 |     strcpy(val, strchr(line, ':') + 1);
      |     ^~~~~~
/tmp/tmplbyo2uj4.c:1:1: note: include ‘<string.h>’ or provide a declaration of
- SCP-000107: secure_code [C] /tmp/tmpykbhzg5m.c: In function ‘parse_header’:
/tmp/tmpykbhzg5m.c:3:15: error: implicit declaration of function ‘strchr’ [-Wimplicit-function-declaration]
    3 |     char *v = strchr(line, ':') + 1;
      |               ^~~~~~
/tmp/tmpykbhzg5m.c:1:1: note: include ‘<string.h>’ or provide a declar
- SCP-000140: vulnerable_code [Java] /tmp/tmp9htcgagk.java:1: error: class, interface, annotation type, enum, record, method or field expected
<!-- greeting.html -->
^
1 error

- SCP-000140: secure_code [Java] /tmp/tmpff1pfx2a.java:1: error: class, interface, annotation type, enum, record, method or field expected
<!-- greeting.html -->
^
1 error

- SCP-000318: vulnerable_code [Go] /tmp/tmpgpt6c0_c.go:1:1: expected 'package', found c

- SCP-000318: secure_code [Go] /tmp/tmp427oa04n.go:1:1: expected 'package', found c

- SCP-000268: vulnerable_code [C] /tmp/tmprs8jvizu.c:1:11: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    1 | void *p = malloc(n);
      |           ^~~~~~
/tmp/tmprs8jvizu.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
  +++ |+#include <stdlib.h>
    1 | void *p = mall
- SCP-000268: secure_code [C] /tmp/tmpseq4rvde.c:1:11: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    1 | void *p = malloc(n);
      |           ^~~~~~
/tmp/tmpseq4rvde.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
  +++ |+#include <stdlib.h>
    1 | void *p = mall
- SCP-000380: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpz7qmhg47.rs:1:1
  |
1 | let client = reqwest::Client::builder().danger_accept_invalid_certs(true).build()?;  // Vulnerable\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
- SCP-000380: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp4shg5ozr.rs:1:1
  |
1 | let client = reqwest::Client::builder().build()?;  // Secure: verifies certs\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a f
- SCP-000232: vulnerable_code [Java] /tmp/tmpa3c00ocp.java:1: error: cannot find symbol
ObjectInputStream ois = new ObjectInputStream(req.getInputStream());
                                              ^
  symbol:   variable req
  location: class tmpa3c00ocp
/tmp/tmpa3c00ocp.java:1: error: compact source file does not have main method
- SCP-000232: secure_code [Java] /tmp/tmp8zn07ap2.java:1: error: cannot find symbol
MyDto o = objectMapper.readValue(req.getInputStream(), MyDto.class);  // Secure: JSON DTO
^
  symbol:   class MyDto
  location: class tmp8zn07ap2
/tmp/tmp8zn07ap2.java:1: error: cannot find symbol
MyDto o = objectMapper.readValue(req.getInputStream(
- SCP-000070: vulnerable_code [C++] /tmp/tmp5qsuw9wm.cpp:2:6: error: ‘string’ in namespace ‘std’ does not name a type
    2 | std::string token() {
      |      ^~~~~~
/tmp/tmp5qsuw9wm.cpp:2:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <string>’
    1 | #include <cstdlib>
  +++ |
- SCP-000260: vulnerable_code [C] /tmp/tmpu8w5w7ti.c: In function ‘run’:
/tmp/tmpu8w5w7ti.c:2:13: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    2 |   char *p = malloc(16);
      |             ^~~~~~
/tmp/tmpu8w5w7ti.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
  +++ 
- SCP-000260: secure_code [C] /tmp/tmp8bwrwza9.c: In function ‘run’:
/tmp/tmp8bwrwza9.c:2:13: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
    2 |   char *p = malloc(16);
      |             ^~~~~~
/tmp/tmp8bwrwza9.c:1:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
  +++ 
- SCP-000134: secure_code [C++] /tmp/tmpz5qn_5or.cpp: In function ‘void report(const char*)’:
/tmp/tmpz5qn_5or.cpp:3:7: error: ‘strpbrk’ was not declared in this scope
    3 |   if (strpbrk(t, ";&|$\"'") != nullptr) return;  // Secure: validate
      |       ^~~~~~~
/tmp/tmpz5qn_5or.cpp:4:31: error: ‘snprintf’ was not declared in 
- SCP-000466: vulnerable_code [Java] /tmp/tmp7sbxig3j.java:1: error: class, interface, annotation type, enum, record, method or field expected
http.formLogin();
^
1 error

- SCP-000466: secure_code [Java] /tmp/tmpqps9xoh2.java:1: error: class, interface, annotation type, enum, record, method or field expected
http.sessionManagement()
^
1 error

- SCP-000256: vulnerable_code [C] /tmp/tmpqx2xe1ix.c: In function ‘copy’:
/tmp/tmpqx2xe1ix.c:3:3: error: implicit declaration of function ‘strcpy’ [-Wimplicit-function-declaration]
    3 |   strcpy(buf, in);  // Vulnerable: no bounds
      |   ^~~~~~
/tmp/tmpqx2xe1ix.c:1:1: note: include ‘<string.h>’ or provide a declaration of ‘str
- SCP-000256: secure_code [C] /tmp/tmporajb5km.c: In function ‘copy’:
/tmp/tmporajb5km.c:3:3: error: implicit declaration of function ‘strncpy’ [-Wimplicit-function-declaration]
    3 |   strncpy(buf, in, sizeof(buf) - 1);  // Secure: bounded
      |   ^~~~~~~
/tmp/tmporajb5km.c:1:1: note: include ‘<string.h>’ or provide a decla
- SCP-000382: vulnerable_code [Rust] error: expected item, found `.`
 --> /tmp/tmp38fxe6g2.rs:1:1
  |
1 | .allowed_origin(Origin::star())  // Vulnerable + credentials\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error: aborting due to 1 pre
- SCP-000382: secure_code [Rust] error: expected item, found `.`
 --> /tmp/tmp6421cea4.rs:1:1
  |
1 | .allowed_origin(Origin::exact("https://app.example.com".parse().unwrap()))  // Secure\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

err
- SCP-000069: secure_code [C++] /tmp/tmpvdsruzal.cpp: In function ‘std::string read(const std::string&)’:
/tmp/tmpvdsruzal.cpp:7:22: error: variable ‘std::ifstream f’ has initializer but incomplete type
    7 |     std::ifstream f(p);
      |                      ^
/tmp/tmpvdsruzal.cpp:2:1: note: ‘std::ifstream’ is defined in head
- SCP-000366: vulnerable_code [Rust] error: unknown start of token: \
 --> /tmp/tmpv51l4avs.rs:1:65
  |
1 | let q = format!("SELECT * FROM users WHERE name = '{}''", name);\nsqlx::query(&q).fetch_all(&pool).await  // Vulnerable\
  |                                                                 ^

error: expected item, found keyword `
- SCP-000366: secure_code [Rust] error: expected one of `!` or `::`, found `(`
 --> /tmp/tmpj3x1_r1n.rs:1:12
  |
1 | sqlx::query("SELECT * FROM users WHERE name = $1").bind(&name).fetch_all(&pool).await  // Secure: bound\
  |            ^ expected one of `!` or `::`

error: aborting due to 1 previous error


- SCP-000374: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpaskudqop.rs:1:1
  |
1 | let inv = repo.find_invoice(id).await?;  // Vulnerable: no owner
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full list of i
- SCP-000374: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpdm9y9s56.rs:1:1
  |
1 | let inv = repo.find_invoice_for(id, user_id).await?;  // Secure: scoped
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full li
- SCP-000042: vulnerable_code [Java] /tmp/tmptko69xsc.java:2: error: class WebConfig is public, should be declared in a file named WebConfig.java
public class WebConfig implements WebMvcConfigurer {
       ^
/tmp/tmptko69xsc.java:2: error: cannot find symbol
public class WebConfig implements WebMvcConfigurer {
                         
- SCP-000042: secure_code [Java] /tmp/tmpr3yj0x6c.java:6: error: <identifier> expected
            public boolean preHandle(r, re, h) {
                                      ^
/tmp/tmpr3yj0x6c.java:6: error: <identifier> expected
            public boolean preHandle(r, re, h) {
                                          ^
/tmp/tmpr3
- SCP-000248: vulnerable_code [Ruby] ruby: /tmp/tmp0aj8lrso.rb:1: syntax error, unexpected '<' (SyntaxError)
<div><%= raw(@comment) %></div...
^


- SCP-000248: secure_code [Ruby] ruby: /tmp/tmpzaqhva2z.rb:1: syntax error, unexpected '<' (SyntaxError)
<div><%= @comment %></div>  <!...
^


- SCP-000273: vulnerable_code [C++] /tmp/tmp5rwswhc4.cpp: In function ‘void log(const char*)’:
/tmp/tmp5rwswhc4.cpp:2:3: error: ‘printf’ was not declared in this scope
    2 |   printf(m);  // Vulnerable
      |   ^~~~~~
/tmp/tmp5rwswhc4.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#incl
- SCP-000273: secure_code [C++] /tmp/tmp4apx4d_g.cpp: In function ‘void log(const char*)’:
/tmp/tmp4apx4d_g.cpp:2:3: error: ‘printf’ was not declared in this scope
    2 |   printf("%s", m);  // Secure
      |   ^~~~~~
/tmp/tmp4apx4d_g.cpp:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; this is probably fixable by adding ‘#in
- SCP-000237: vulnerable_code [Java] /tmp/tmp8quupiyl.java:1: error: class, interface, annotation type, enum, record, method or field expected
<div th:utext="${comment}"></div>  <!-- Vulnerable: unescaped -->
^
1 error

- SCP-000237: secure_code [Java] /tmp/tmp5iw6kjaj.java:1: error: class, interface, annotation type, enum, record, method or field expected
<div th:text="${comment}"></div>  <!-- Secure: escaped -->
^
1 error

- SCP-000450: secure_code [C++] /tmp/tmpqre39k_2.cpp:1:1: error: ‘QSqlQuery’ does not name a type
    1 | QSqlQuery q;
      | ^~~~~~~~~
/tmp/tmpqre39k_2.cpp:2:1: error: ‘q’ does not name a type
    2 | q.prepare("SELECT * FROM u WHERE name = ?");
      | ^
/tmp/tmpqre39k_2.cpp:3:1: error: ‘q’ does not name a type
    3 | q.addBin
- SCP-000378: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp9i3gnxdn.rs:1:1
  |
1 | let v: serde_json::Value = serde_json::from_slice(&body)?;  // Vulnerable: loose typing\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = no
- SCP-000378: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp167smlw8.rs:1:1
  |
1 | let v: StrictDto = serde_json::from_slice(&body)?;  // Secure: typed DTO\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full 
- SCP-000381: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmps8dp4bsn.rs:1:1
  |
1 | let filter = format!("(uid={})", user);  // Vulnerable: inject\
  | ^^^
  | |
  | `let` cannot be used for global variables
  | help: consider using `static` or `const` instead of `let`
  |
  = note: for a full list of it
- SCP-000381: secure_code [Rust] error: unknown start of token: \
 --> /tmp/tmp4mihphpi.rs:1:53
  |
1 | let filter = format!("(uid={})", user.replace("\", "\\").replace("*", "\*"));  // Secure: escape\
  |                                                     ^^
  |
  = note: character appears once more

error: unknown start of token
- SCP-000369: vulnerable_code [Rust] error: expected item, found `.`
 --> /tmp/tmpkh_c2407.rs:1:1
  |
1 | .route("/admin/user/{id}", web::delete().to(delete_user))  // Vulnerable: no guard\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

error:
- SCP-000369: secure_code [Rust] error: expected item, found `.`
 --> /tmp/tmppal7z9kk.rs:1:1
  |
1 | .route("/admin/user/{id}", web::delete().guard(admin_guard).to(delete_user))  // Secure\
  | ^ expected item
  |
  = note: for a full list of items that can appear in modules, see <https://doc.rust-lang.org/reference/items.html>

e
- SCP-000278: secure_code [C++] /tmp/tmpipq09i3b.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type
    1 | std::string get_key() {
      |      ^~~~~~
/tmp/tmpipq09i3b.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <string>’
  +++ |+#include <string>
    1 
- SCP-000275: vulnerable_code [C++] /tmp/tmpq0uxeo4h.cpp:1:12: error: ‘size_t’ was not declared in this scope
    1 | void* make(size_t n, size_t s) {
      |            ^~~~~~
/tmp/tmpq0uxeo4h.cpp:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
  +++ |+#include <cstddef>
 
- SCP-000275: secure_code [C++] /tmp/tmp3sc7f5or.cpp:1:12: error: ‘size_t’ was not declared in this scope
    1 | void* make(size_t n, size_t s) {
      |            ^~~~~~
/tmp/tmp3sc7f5or.cpp:1:1: note: ‘size_t’ is defined in header ‘<cstddef>’; this is probably fixable by adding ‘#include <cstddef>’
  +++ |+#include <cstddef>
 
- SCP-000323: vulnerable_code [Go] /tmp/tmpu85nc66m.go:1:1: expected 'package', found file

- SCP-000323: secure_code [Go] /tmp/tmp9ul8tcy5.go:1:1: expected 'package', found 'if'

- SCP-000130: vulnerable_code [Java] /tmp/tmpse3h20fp.java:1: error: statements not expected outside of methods and initializers
while ((e = zis.getNextEntry()) != null) {
^
1 error

- SCP-000130: secure_code [Java] /tmp/tmplm1dye0p.java:1: error: statements not expected outside of methods and initializers
while ((e = zis.getNextEntry()) != null) {
^
1 error

- SCP-000325: vulnerable_code [Go] /tmp/tmpxtbc4gkp.go:1:1: expected 'package', found r

- SCP-000325: secure_code [Go] /tmp/tmpr9ju2spy.go:1:1: expected 'package', found r

- SCP-000439: vulnerable_code [Java] /tmp/tmpcji2f4ny.java:1: error: cannot find symbol
String q = "SELECT * FROM ledger WHERE acct='" + acct + "'";
                                                 ^
  symbol:   variable acct
  location: class tmpcji2f4ny
/tmp/tmpcji2f4ny.java:1: error: compact source file does not have main method in 
- SCP-000439: secure_code [Java] /tmp/tmprz1vdgxw.java:2: error: class, interface, annotation type, enum, record, method or field expected
ps.setString(1, acct);  // bound
^
1 error

- SCP-000379: vulnerable_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmp9bqukj0v.rs:1:1
  |
1 | let mut counter = counter_clone;  // Vulnerable: unsynchronized mutation\ncounter += 1;\
  | ^^^ `let` cannot be used for global variables
  |
  = help: consider using `static` and a `Mutex` instead of `let mut`
  = note:
- SCP-000379: secure_code [Rust] error: expected item, found keyword `let`
 --> /tmp/tmpmtqsof_1.rs:1:1
  |
1 | let mut c = counter.lock().unwrap();  // Secure: Mutex\n*c += 1;\
  | ^^^ `let` cannot be used for global variables
  |
  = help: consider using `static` and a `Mutex` instead of `let mut`
  = note: for a full list of ite
- SCP-000011: vulnerable_code [Java] /tmp/tmpi5x6eays.java:1: error: cannot find symbol
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
^
  symbol:   class DocumentBuilderFactory
  location: class tmpi5x6eays
/tmp/tmpi5x6eays.java:2: error: cannot find symbol
DocumentBuilder db = dbf.newDocumentBuilder();  // Vulnera
- SCP-000011: secure_code [Java] /tmp/tmpgrjb4_3i.java:2: error: class, interface, annotation type, enum, record, method or field expected
dbf.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
^
/tmp/tmpgrjb4_3i.java:3: error: class, interface, annotation type, enum, record, method or field expected
dbf.setF
- SCP-000189: vulnerable_code [Go] /tmp/tmpx9fukm_v.go:1:1: expected 'package', found c

- SCP-000189: secure_code [Go] /tmp/tmpvo28ac_2.go:1:1: expected 'package', found c

- SCP-000239: vulnerable_code [Java] /tmp/tmp234hdej_.java:1: error: cannot find symbol
String cls = req.getParameter("cls");
             ^
  symbol:   variable req
  location: class tmp234hdej_
/tmp/tmp234hdej_.java:1: error: compact source file does not have main method in the form of void main() or void main(String[] args)
String c
- SCP-000239: secure_code [Java] /tmp/tmpow_g9ob4.java:3: error: statements not expected outside of methods and initializers
if (!ALLOWED.contains(cls)) throw new IllegalArgumentException("bad cls");  // Secure
^
1 error

- SCP-000288: vulnerable_code [C++] /tmp/tmph01hpgf_.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type
    1 | std::string f = "(uid=" + user + ")";  // Vulnerable: inject
      |      ^~~~~~
/tmp/tmph01hpgf_.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <stri
- SCP-000288: secure_code [C++] /tmp/tmp4x3m270z.cpp:1:6: error:stringin namespacestddoes not name a type
    1 | std::string f = "(uid=" + escape_ldap(user) + ")";  // Secure: escape
      |      ^~~~~~
/tmp/tmp4x3m270z.cpp:1:1: note:std::stringis defined in header ‘<string>’; this is probably fixable by adding ‘#incl
- SCP-000279: vulnerable_code [C++] /tmp/tmpzvlnsrwq.cpp:1:6: error: ‘string’ in namespace ‘std’ does not name a type
    1 | std::string tok() {
      |      ^~~~~~
/tmp/tmpzvlnsrwq.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; this is probably fixable by adding ‘#include <string>
  +++ |+#include <string>
    1 | st
- SCP-000324: vulnerable_code [Go] /tmp/tmpetqhopc5.go:1:1: expected 'package', found filter

- SCP-000324: secure_code [Go] /tmp/tmp_uf0jk3a.go:1:1: expected 'package', found filter

- SCP-000257: vulnerable_code [C] /tmp/tmp829yeuym.c: In function ‘log_msg’:
/tmp/tmp829yeuym.c:2:3: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    2 |   printf(m);  // Vulnerable: format string
      |   ^~~~~~
/tmp/tmp829yeuym.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘pri
- SCP-000257: secure_code [C] /tmp/tmpvajv3q43.c: In function ‘log_msg’:
/tmp/tmpvajv3q43.c:2:3: error: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration]
    2 |   printf("%s", m);  // Secure: positional
      |   ^~~~~~
/tmp/tmpvajv3q43.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘prin