summaryrefslogtreecommitdiffstats
path: root/TraceScreen.c
AgeCommit message (Collapse)Author
2019-04-29Add timestamps to the strace screenMario Harjac
2018-03-25strace: increase string lengthHisham Muhammad
2018-02-18Replace size_t with int/void* unionHisham Muhammad
I was occasionally passing negative values to size_t. Plus, this better reflects the intent of the variant argument. Reported by Coverity: https://scan8.coverity.com/reports.htm#v13253/p10402/fileInstanceId=22093891&defectInstanceId=7543346&mergedDefectId=174179&fileStart=251&fileEnd=500
2017-07-27Security review: check results of snprintf.Hisham Muhammad
Calls marked with xSnprintf shouldn't fail. Abort program cleanly if any of them does.
2017-07-26Merge branch 'master' of https://github.com/hishamhm/htopHisham Muhammad
2017-07-26Security review: make privilege dropping-restoring optional.Hisham Muhammad
This is/was necessary only on macOS, because you needed root in order to read the process list. This was never necessary on Linux, and it also raises security concerns, so now it needs to be enabled explicitly at build time.
2017-07-22Mark some things as constRichard
Several string pointer arrays pointed to const strings but were not const themselves. A few various structures and arrays were also marked const.
2017-03-25Add missing includecoypoop
sys/time.h for struct timeval
2016-12-29Replace all uses of sprintf with snprintfTomasz Kramkowski
In all the cases where sprintf was being used within htop, snprintf could have been used. This patch replaces all uses of sprintf with snprintf which makes sure that if a buffer is too small to hold the resulting string, the string is simply cut short instead of causing a buffer overflow which leads to undefined behaviour. `sizeof(variable)` was used in these cases, as opposed to `sizeof variable` which is my personal preference because `sizeof(variable)` was already used in one way or another in other parts of the code.
2016-05-25Silence warnings about seteuid return value.Hisham
Closes #483.
2016-02-02Check for failure in allocations.Hisham
2016-01-12refactor *Screen classes, add InfoScreen superclassHisham Muhammad
2015-12-02add some security checks when running SUID rootMichael Klein
on Darwin, htop needs to run with root privileges to display information about other users processes. This commit makes running htop SUID root a bit more safe.
2015-09-16Clean up some needless malloc casts, convert some mallocs to callocs, and ↵Michael McConville
fix some style
2015-08-19Rename String to StringUtils.David Hunt
Fixes building on case-insensitive filesystems where String.h gets confused with <string.h>. From d734dacea0a10d0465dad4e95b3421511e7da112 Mon Sep 17 00:00:00 2001 From: David Hunt <dhunt@iolanthe.attlocal.net> Date: Sat, 11 Jul 2015 20:56:31 -0500 Subject: [PATCH 1/8] Rename String to StringUtils
2015-05-15fix compiler warningsChristian Hesse
gcc gives warnings like this: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result Assign value to a variable, cast to (void) to discard it.
2015-03-23incremental search and filter reintegrated!Hisham Muhammad
2015-03-23Move FunctionBar inside PanelHisham Muhammad
2014-04-22safer code, test for return of fcntlHisham Muhammad
2012-12-05Changes in object model: separate class objects to store vtable. Also, nicer ↵Hisham Muhammad
UTF-8 display of big numbers.
2012-11-10search and filter for the strace and lsof screens!Hisham Muhammad
2012-01-03make htop trunk compile on FreeBSD 8.2-STABLEHisham Muhammad
(thanks to Trond Endestrol)
2011-12-26major header cleanupHisham Muhammad
2011-09-24Convert affinity control from the deprecated PLPA to HWLOCHisham Muhammad
2010-08-24add support for steal/guest CPU time measurementHisham Muhammad
simplify processor data accounting (add CPUData structure) remove Process_clone trick
2010-07-31home and end keys in trace screensHisham Muhammad
2010-02-25warning fixesHisham Muhammad
2009-06-08fix to minor bug affecting the build process, a maintenance release will ↵Hisham Muhammad
follow shortly.
2009-06-02changes for htop 0.8.2Hisham Muhammad
2008-03-09Clean up headers by using 'static' whenever possible.Hisham Muhammad
Reduces resulting code size.
2006-08-24Fix bug 1538463.Hisham Muhammad
2006-07-11Performance improvement hackathon: improve process comparison routines,Hisham Muhammad
disable useless code in release builds such as runtime type-checking on dynamic data structures and process fields that are not being computed, faster(?) method for verifying the process owner (still need to ensure correctness), don't destroy and create process objects for hidden kernel threads over and over. Phew. I shouldn't be doing all this today, but I could not resist.
2006-06-06Updates for new version of the MakeHeader.py script.Hisham Muhammad
2006-06-03Display error message when strace is not available.Hisham Muhammad
Mark autogen.sh executable in svn.
2006-05-30Remove references to ListBoxHisham Muhammad
2006-05-30Rename ListBox to Panel, matching dit.Hisham Muhammad
2006-05-09Wait for strace child process to die properlyHisham Muhammad
2006-03-23Fixes for header generation.Hisham Muhammad
2006-03-04Initial import.Hisham Muhammad