subsurface/core
Berthold Stoeger d7ca0c7253 planner: avoid out-of-bounds access
When exiting the loop, stopidx is 0, which means that if there
are no stoplevels, stoplevels[stopidx + 1] generates an
out-of-bounds access. Instead, suppose a stop at 3m or 10ft.

Suggested-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2023-01-19 14:26:00 +01:00
..
settings core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
subsurface-qt
android.cpp
btdiscovery.cpp Ratio BLE detection fix 2022-08-30 07:20:33 -07:00
btdiscovery.h
checkcloudconnection.cpp Collect and convert git repo data to 'struct git_info' 2022-04-17 22:14:34 -07:00
checkcloudconnection.h
cloudstorage.cpp mobile: add ability to delete cloud account 2022-08-13 14:08:37 -07:00
cloudstorage.h mobile: add ability to delete cloud account 2022-08-13 14:08:37 -07:00
CMakeLists.txt core: create range.h header for range manupulation functions 2022-10-30 21:16:00 +01:00
cochran.c
cochran.h
color.cpp
color.h
compressibility.r
configuredivecomputer.cpp
configuredivecomputer.h
configuredivecomputerthreads.cpp
configuredivecomputerthreads.h
connectionlistmodel.cpp core/bt: ensure that BT/BLE addresses with name sort first 2020-05-15 04:05:06 +03:00
connectionlistmodel.h
datatrak.c
datatrak.h
deco.c
deco.h planner: pass in_planner argument to decoMode() 2021-02-17 07:26:55 -08:00
device.cpp
device.h
devicedetails.cpp
devicedetails.h
dive.c core: don't consider dives with many samples as manually added 2022-10-21 16:51:57 -07:00
dive.h Prefer real data over planned 2022-08-25 13:38:12 -07:00
divecomputer.c core: add make_manually_added_dc() function 2022-10-21 16:51:57 -07:00
divecomputer.h core: add make_manually_added_dc() function 2022-10-21 16:51:57 -07:00
divefilter.cpp build-system: make map support its own thing 2022-04-18 07:24:38 +02:00
divefilter.h
divelist.c cleanup: remove unused function set_dive_nr_for_current_dive() 2022-08-28 13:34:13 -07:00
divelist.h cleanup: remove unused function set_dive_nr_for_current_dive() 2022-08-28 13:34:13 -07:00
divelogexportlogic.cpp cleanup: remove unused variable 2022-09-03 13:49:02 -07:00
divelogexportlogic.h
divemode.h Cleanup: move planner/deco related declarations planner/deco.h 2019-08-08 16:26:31 -07:00
divesite-helper.cpp Dive site: use own copy of taxonomy in dive-site-edit widget 2018-10-13 21:41:41 -04:00
divesite.c
divesite.h
divesitehelpers.cpp
divesitehelpers.h
downloadfromdcthread.cpp
downloadfromdcthread.h
equipment.c
equipment.h
errorhelper.c clean up logging, and add error reports to it too 2022-08-31 13:58:34 -07:00
errorhelper.h
event.c
event.h
exif.cpp
exif.h
extradata.h
file.c git access: add proper cleanup function for git_info 2022-04-22 08:28:17 -07:00
file.h
filterconstraint.cpp core: use range-based for loops in filterconstraints 2022-10-30 21:57:44 +01:00
filterconstraint.h
filterpreset.cpp
filterpreset.h
format.cpp
format.h
fulltext.cpp filter: normalize text of fulltext search to base letters 2022-07-08 11:38:44 -07:00
fulltext.h
gas-model.c Show correct gas density in CCR mode 2022-11-08 10:43:47 -08:00
gas.c
gas.h Show correct gas density in CCR mode 2022-11-08 10:43:47 -08:00
gaspressures.c
gaspressures.h
gettext.h
gettextfromc.cpp
gettextfromc.h
git-access.c git access: add proper cleanup function for git_info 2022-04-22 08:28:17 -07:00
git-access.h git access: add proper cleanup function for git_info 2022-04-22 08:28:17 -07:00
globals.cpp
globals.h
imagedownloader.cpp
imagedownloader.h
import-cobalt.c
import-csv.c core: use free_dive() to free dive 2022-08-22 09:34:25 -07:00
import-csv.h
import-divinglog.c
import-seac.c Handle Mulitple Seac Computers colliding during import 2022-05-12 11:07:03 -07:00
import-shearwater.c
import-suunto.c
interpolate.h
ios.cpp
libdivecomputer.c core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
libdivecomputer.h
liquivision.c core: use free_dive() to free dive 2022-08-22 09:34:25 -07:00
load-git.c git: don't access global dive site table 2022-11-15 14:15:11 -08:00
macos.c
membuffer.cpp
membuffer.h
metadata.cpp
metadata.h
metrics.cpp
metrics.h core: remove DPR from IconMetrics class 2021-12-17 11:54:23 -08:00
namecmp.h
ostctools.c
parse-gpx.cpp
parse-gpx.h
parse-xml.c core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
parse.c Use the right type for sanitize_sensor_id() 2022-09-20 09:41:35 -07:00
parse.h
picture.c
picture.h
pictureobj.cpp
pictureobj.h
planner.c planner: avoid out-of-bounds access 2023-01-19 14:26:00 +01:00
planner.h cleanup: remove unused declarations in planner.h 2022-11-01 12:12:19 +01:00
plannernotes.c planner: pass in_planner argument to decoMode() 2021-02-17 07:26:55 -08:00
pref.c Added option to choose between different depth grid quantization schema. 2022-05-21 17:29:40 -07:00
pref.h Map Short Names - add preference setting 2022-08-21 18:53:35 -07:00
profile.c Show correct gas density in CCR mode 2022-11-08 10:43:47 -08:00
profile.h
qt-ble.cpp
qt-ble.h
qt-gui.h
qt-init.cpp translations: fix Portuguese parent translation 2022-03-27 17:11:05 -07:00
qthelper.cpp cleanup: remove thumbnail conversion function 2022-10-30 22:06:17 +01:00
qthelper.h core: create range.h header for range manupulation functions 2022-10-30 21:16:00 +01:00
qtserialbluetooth.cpp
range.h cleanup: implement index_of() and index_of_if() generics 2022-10-31 19:35:15 +01:00
sample.c
sample.h
save-git.c git access: save to local repository before doing remote access 2022-04-22 08:28:17 -07:00
save-html.c
save-html.h
save-profiledata.c
save-profiledata.h
save-xml.c git access: add proper cleanup function for git_info 2022-04-22 08:28:17 -07:00
selection.cpp
selection.h
serial_ftdi.c
serial_usb_android.cpp
serial_usb_android.h
sha1.c Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
sha1.h
ssrf.h
statistics.c cleanup: move minute formating to format-string.cpp 2022-09-03 13:49:02 -07:00
statistics.h cleanup: move minute formating to format-string.cpp 2022-09-03 13:49:02 -07:00
string-format.cpp cleanup: move minute formating to format-string.cpp 2022-09-03 13:49:02 -07:00
string-format.h cleanup: move minute formating to format-string.cpp 2022-09-03 13:49:02 -07:00
strndup.h
strtod.c
structured_list.h
subsurface-float.h core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
subsurface-string.h core: move floating point functions to own header file 2022-08-30 22:34:38 +02:00
subsurface-time.h
subsurfacestartup.c git access: add proper cleanup function for git_info 2022-04-22 08:28:17 -07:00
subsurfacestartup.h
subsurfacesysinfo.cpp
subsurfacesysinfo.h
table.h
tag.c
tag.h
taxonomy.c
taxonomy.h
time.c trivial: remove obscure division-assignment operator 2022-08-01 11:30:53 -07:00
timer.c
timer.h
trip.c
trip.h
uemis-downloader.c core: use free_dive() to free dive 2022-08-22 09:34:25 -07:00
uemis.c
uemis.h
units.c
units.h Deal with negative variation times 2022-06-04 14:19:05 -07:00
unix.c
uploadDiveLogsDE.cpp Qt6: update the connect calls for QNetworkReply 2022-04-18 07:24:39 +02:00
uploadDiveLogsDE.h
uploadDiveShare.cpp Qt6: update the connect calls for QNetworkReply 2022-04-18 07:24:39 +02:00
uploadDiveShare.h
version.c
version.h
videoframeextractor.cpp
videoframeextractor.h
webservice.h
windows.c
windowtitleupdate.cpp
windowtitleupdate.h
worldmap-options.h
worldmap-save.c
worldmap-save.h
xmlparams.cpp
xmlparams.h
xmp_parser.cpp
xmp_parser.h