Skip to content

Merge trunk #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 91 commits into from
Mar 20, 2022
Merged

Merge trunk #17

merged 91 commits into from
Mar 20, 2022

Conversation

OLFDB
Copy link
Owner

@OLFDB OLFDB commented Mar 20, 2022

No description provided.

OLFDB and others added 29 commits April 4, 2021 12:47
To be able to find items with wrong data for height, size, or weight.
To be able to find items with wrong height, size, weight.
Added "poly_low_emission_zone"
…le. Improved layout conditional speed warner
…s#1156)

If set to 0 navit will use the old town search method which will speed up the search on low performance hardware. Available only with gui_internal.

<gui type="internal" enabled="yes" town_use_postal="0">
…OS (navit-gps#1145)

* removed files from unsupported ports, i.e. Maemo and WebOS

	borttagen:     maemo/CMakeLists.txt
	borttagen:     maemo/vehicle_maemo.c
	borttagen:     webos/CMakeLists.txt
	borttagen:     webos/bluetooth.c
	borttagen:     webos/bluetooth.h
	borttagen:     webos/cJSON.c
	borttagen:     webos/cJSON.h
	borttagen:     webos/vehicle_webos.c
	borttagen:     webos/vehicle_webos.h

* removed webos and maemo from other files

* changed according to comments from @jkoan

	ändrad:        CMakeLists.txt

* removed autoload and osso

	ändrad:        CMakeLists.txt
	borttagen:     navit/autoload/osso/CMakeLists.txt
	borttagen:     navit/autoload/osso/osso.c
	ändrad:        navit/navit_shipped.xml

Co-authored-by: jkoan <jkoan@users.noreply.github.com>
* Refactor:Transform: Create transform func for a single point

we have a common pattern where we call transform() for a single point. We have
to specify the last 4 parameters as constants in a function with too
many parameters. So refactor this function to a simpler signature. While
at this, we also rename the function for easy distinction.

* Fix:Transform: Fix buffer overflow in transform_point_buf in ticket navit-gps#1167

When displayitem_transform_holes() is called, we allocate a struct point buffer
of size count. Then we call transform_point_buf() to fill that buffer called
result. In this function we fill the buffer in a for loop that runs count times.
The buffer is indexed using result_idx which is incremented every loop
iteration. However, if we are in 3d mode (indicated by t->ddd), we call
transform_z_clip_if_necessary(). This can lead to the repetition of the current
loop iteration by decreasing the loop variable i by 1. Even though we decreased
i we still increment result_idx by 1. So from the point of view of result_idx we
are running the loop count+1 times. Thus, we write one element past the
allocated buffer.

To fix this we give the size of the allocated buffer to
transform_point_buf(). Then we check in the loop if the repetition of this
loop iteration would fit into the buffer. If not, we double the size of
the buffer and try again until we succeed.

Co-authored-by: Stefan Wildemann <metalstrolch@users.noreply.github.com>
…t-gps#1174)

* feature: graphics: allow spiked lines for cliff and embarkments

This adds another drwing element to graphics system. It can produce
lines with spikes as used for cliffs on maps.

Additionally this adds embarlment support for map.

* review fixes.

Add changes requested by review, plus add paranoia check on xml
parameter.
@OLFDB OLFDB merged commit 7acf706 into ios Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants