Skip to content

Instantly share code, notes, and snippets.

View andy5995's full-sized avatar

Andy Alt andy5995

View GitHub Profile
@andy5995
andy5995 / gist:6bf19702fac906600e2c7e4b54bb32ce
Created September 6, 2018 23:52
csv, all detected by coverity
CID,Type,Impact,Status,First Detected,Owner,Classification,Severity,Action,Component,Category,File,Function
317496,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/mp_fopen.c,
317495,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/db_join.c,
317494,Various,Medium,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Various,/db/txn.c,CDB_txn_checkpoint
317493,Use after free,High,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Memory - illegal accesses,/db/log.c,CDB___log_find
317492,Uninitialized scalar variable,High,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Uninitialized variables,/db/mp_fopen.c,CDB___memp_fopen
317491,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/qam_rec.c,
317490,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/hash_auto.c,
317
@andy5995
andy5995 / gist:6625e36a20b46d9b76af6df1f55aaa90
Created September 6, 2018 23:47
csv file, hldig high-impact defect results from coverity
CID,Type,Status,First Detected,Owner,Classification,Severity,Action,Component,Category,File,Function
317493,Use after free,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Memory - illegal accesses,/db/log.c,CDB___log_find
317492,Uninitialized scalar variable,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Uninitialized variables,/db/mp_fopen.c,CDB___memp_fopen
317481,Resource leak,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Resource leaks,/hltools/hlmerge.cc,mergeDB
317479,Use after free,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Memory - illegal accesses,/htlib/List.cc,Remove
317477,Resource leak,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Resource leaks,/htnet/HtCookie.cc,HtCookie
317468,Resource leak,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Resource leaks,/db/log_put.c,CDB_log_file
317463,Out-of-bounds access,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Memory - corr
In [/home/andy/src/zg-local/zetaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 8164] Error detected: signal 11:
Error saved to logfile [/home/andy/.zetaglest/error.log]
*ERROR* [2018-07-19 16:13:05] In [/home/andy/src/zg-local/zetaglest-source/source/glest_game/main/main.cpp::handleRuntimeError Line: 841] [In [/home/andy/src/zg-local/zetaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 8164] Error detected: signal 11:
] gameInitialized = 1, program = 0x55bb3c7d3720
*ERROR* [2018-07-19 16:13:06] In [/home/andy/src/zg-local/zetaglest-source/source/glest_game/main/main.cpp::handleRuntimeError Line: 871] [In [/home/andy/src/zg-local/zetaglest-source/source/glest_game/main/main.cpp::handleSIGSEGV Line: 8164] Error detected: signal 11:
Stack Trace:
/home/andy/src/zg-local/zetaglest-source/mk/linux/zetaglest:Glest::Game::ExceptionHandler::handleRuntimeError(char const*, bool)address [0x55bb3ba3fb1a] line: 0
/home/andy/src/zg-local/zetaglest-source/mk/linux/zetaglest:Glest::Game::
--- xaa 2018-03-08 16:23:30.950144341 -0600
+++ temp1/xaa 2018-03-08 16:23:31.074144849 -0600
@@ -5,7 +5,7 @@
FactionIndex = 0
teamIndex = 0
startLocationIndex = 0
-thisFaction = 0
+thisFaction = 1
control = 5
Faction Name: romans
andy@oceanus:~/src/rmw-project/rmw$ ls /usr/share/locale/
Display all 247 possibilities? (y or n)
ach/ es/ ku_IQ/ se/
af/ es_AR/ ky/ shn/
all_languages es_ES/ l10n/ si/
am/ es_MX/ la/ sk/
an/ et/ lb/ sk_SK/
ang/ et_EE/ lg/ sl/
ar/ eu/ li/ sl_SI/
as/ fa/ ln/ so/
tex_bmp.cpp
tex_codec.cpp
../../../source/lib/sysdep/os/unix/x/x.cpp: In function ‘int clipboard_filter(void*, SDL_Event*)’:
../../../source/lib/sysdep/os/unix/x/x.cpp:267:42: error: ‘union SDL_SysWMmsg::<anonymous>’ has no member named ‘x11’
XEvent* xevent = &event->syswm.msg->msg.x11.event;
^~~
../../../source/lib/sysdep/os/unix/x/x.cpp: In function ‘Status x11_clipboard_init()’:
../../../source/lib/sysdep/os/unix/x/x.cpp:323:30: error: ‘union SDL_SysWMinfo::<anonymous>’ has no member named ‘x11’
g_SDL_Display = info.info.x11.display;
^~~
/*
* simplecgen.c: generates html files using the simplectemplate library
*
* Copyright 2017 Andy <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
msgmerge --previous --sort-output --lang=ru ru.po rmw.pot -o ru.new.po
ru.po:103:9: invalid multibyte sequence
ru.po:103:17: invalid multibyte sequence
ru.po:103:91: invalid multibyte sequence
ru.po:586:12: invalid multibyte sequence
ru.po:586:20: invalid multibyte sequence
ru.po:586:37: invalid multibyte sequence
ru.po:586:97: invalid multibyte sequence
ru.po:586:124: invalid multibyte sequence
ru.po:587:45: invalid multibyte sequence
valgrind --leak-check=full src/simplecgen
==6184== Memcheck, a memory error detector
==6184== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==6184== Using Valgrind-3.12.0.SVN and LibVEX; rerun with -h for copyright info
==6184== Command: src/simplecgen
==6184==
processing infiles/hts_form.sct
==6184== Invalid read of size 1
==6184== at 0x109165: main (simplecgen.c:240)
==6184== Address 0x51e54e0 is 0 bytes inside a block of size 457 free'd
andy@oceanus:~/src/htdig/testing/cgi-bin$ gdb htsearch
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see: