Open Source Computer Vision Library
Go to file
Sean McBride 2083fdc9c0 Fixed UBSan warning about undefined pointer arithmetic overflow
Pointer arithmetic overflow is always undefined, whether signed or unsigned.

It warned here:

`Addition of unsigned offset to 0x00017fd31b97 overflowed to 0x00017fd30c97`

Convert the offset to a signed number, so that we can offset either forward or backwards.

In my own use of OpenCV at least, this is the only case of pointer arithmetic overflow.
2023-05-26 15:54:52 -04:00
.github Merge pull request #23538 from Avasam:patch-1 2023-04-26 12:28:13 +03:00
3rdparty Update FlatBuffers source code to 23.5.9 2023-05-10 14:39:36 +03:00
apps Merge pull request #23479 from vovka643:4.x_charuco_calib 2023-05-05 11:25:36 +03:00
cmake Update FlatBuffers source code to 23.5.9 2023-05-10 14:39:36 +03:00
data Merge pull request #22727 from su77ungr:patch-1 2022-11-17 06:54:25 +00:00
doc Depthmap tutorial: add reference to class documentation and explain parameter usage 2023-05-05 09:31:50 +03:00
include exclude opencv_contrib modules 2020-02-26 15:12:45 +03:00
modules Fixed UBSan warning about undefined pointer arithmetic overflow 2023-05-26 15:54:52 -04:00
platforms RISC-V: fix hardcoded options in RVV 0.7.1 toolchain file 2023-03-27 18:42:56 +03:00
samples Update aruco_detect_board_charuco.py 2023-05-05 13:23:09 -04:00
.editorconfig add .editorconfig 2018-10-11 17:57:51 +00:00
.gitattributes cmake: generate and install ffmpeg-download.ps1 2018-06-09 13:19:48 +03:00
.gitignore Merge pull request #17165 from komakai:objc-binding 2020-06-08 18:32:53 +00:00
CMakeLists.txt Add ENABLE_DELAYLOAD option 2023-02-23 11:24:33 +01:00
CONTRIBUTING.md migration: github.com/opencv/opencv 2016-07-12 12:51:12 +03:00
COPYRIGHT copyright: 2023 (update) 2023-01-09 09:49:22 +00:00
LICENSE Merge pull request #18073 from vpisarev:apache2_license 2020-08-17 11:49:11 +00:00
README.md fix 4.x links 2021-12-22 13:24:30 +00:00
SECURITY.md Updated PGP key for security reports 2023-04-19 19:16:55 +03:00

OpenCV: Open Source Computer Vision Library

Resources

Contributing

Please read the contribution guidelines before starting work on a pull request.

Summary of the guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.