Skip to content
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

Testing pull request #1

Closed
wants to merge 1 commit into from
Closed

Testing pull request #1

wants to merge 1 commit into from

Conversation

ftessier
Copy link
Member

Simply testing how pull request from EGSnrc developers will show up in the EGSnrc repository

@ftessier
Copy link
Member Author

This was just a test of the pull request mechanism, so we close the request without merging.

@ftessier ftessier closed this Sep 10, 2015
@ftessier ftessier reopened this Sep 10, 2015
@ftessier ftessier closed this Sep 10, 2015
@hbouchard hbouchard mentioned this pull request Jan 22, 2019
mxxo added a commit to mxxo/EGSnrc that referenced this pull request Jul 27, 2021
After compiling egs_view with asan support, there was a buffer overflow
error traced back to the memcpy call in ImageWindow::paintEvent.

```
ERROR: AddressSanitizer: dynamic-stack-buffer-overflow ...
READ of size 400 at 0x7ffe71889e40 thread T0
    #0 0x7f543595ecdf  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x99cdf)
    nrc-cnrc#1 0x55dc3acdbb15 in memcpy
    nrc-cnrc#2 0x55dc3acdbb15 in ImageWindow::paintEvent(QPaintEvent*)
    nrc-cnrc#3 0x7f5434f86047 in QWidget::event(QEvent*)
```

The issue is that memcpy will always copy sizeof(lastRegions) bytes,
into the array `regions`, but before this change `regions` could be
shorter than `lastRegions`, leading to a buffer overflow. After this
change, `maxreg` is always set to `N_REG_MAX`, the length of
`lastRegions`.
ftessier pushed a commit to mxxo/EGSnrc that referenced this pull request Jun 27, 2022
After compiling egs_view with asan support, there was a buffer overflow
error traced back to the memcpy call in ImageWindow::paintEvent.

ERROR: AddressSanitizer: dynamic-stack-buffer-overflow ...
READ of size 400 at 0x7ffe71889e40 thread T0
    #0 0x7f543595ecdf  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x99cdf)
    nrc-cnrc#1 0x55dc3acdbb15 in memcpy
    nrc-cnrc#2 0x55dc3acdbb15 in ImageWindow::paintEvent(QPaintEvent*)
    nrc-cnrc#3 0x7f5434f86047 in QWidget::event(QEvent*)

The issue is that memcpy will always copy sizeof(lastRegions) bytes,
into the array regions, but before this change regions could be shorter
than lastRegions, leading to a buffer overflow. After this change,
maxreg is always set to N_REG_MAX, the length of lastRegions.
ftessier pushed a commit to mxxo/EGSnrc that referenced this pull request Jun 27, 2022
After compiling egs_view with asan support, there was a buffer overflow
error traced back to the memcpy call in ImageWindow::paintEvent.

ERROR: AddressSanitizer: dynamic-stack-buffer-overflow ...
READ of size 400 at 0x7ffe71889e40 thread T0
    #0 0x7f543595ecdf  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x99cdf)
    nrc-cnrc#1 0x55dc3acdbb15 in memcpy
    nrc-cnrc#2 0x55dc3acdbb15 in ImageWindow::paintEvent(QPaintEvent*)
    nrc-cnrc#3 0x7f5434f86047 in QWidget::event(QEvent*)

The issue is that memcpy will always copy sizeof(lastRegions) bytes into
the array regions. But before this change, regions could be shorter than
lastRegions, leading to a buffer overflow. After this change, maxreg is
always set to N_REG_MAX, the length of lastRegions.
ftessier pushed a commit to mxxo/EGSnrc that referenced this pull request Jun 27, 2022
After compiling egs_view with asan support, there was a buffer overflow
error traced back to the memcpy call in ImageWindow::paintEvent.

ERROR: AddressSanitizer: dynamic-stack-buffer-overflow ...
READ of size 400 at 0x7ffe71889e40 thread T0
    #0 0x7f543595ecdf  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x99cdf)
    nrc-cnrc#1 0x55dc3acdbb15 in memcpy
    nrc-cnrc#2 0x55dc3acdbb15 in ImageWindow::paintEvent(QPaintEvent*)
    nrc-cnrc#3 0x7f5434f86047 in QWidget::event(QEvent*)

The issue is that memcpy will always copy sizeof(lastRegions) bytes into
the array regions. But before this change, regions could be shorter than
lastRegions, leading to a buffer overflow. After this change, maxreg is
always set to N_REG_MAX, the length of lastRegions.
ftessier pushed a commit that referenced this pull request Jun 30, 2022
After compiling egs_view with asan support, there was a buffer overflow
error traced back to the memcpy call in ImageWindow::paintEvent.

ERROR: AddressSanitizer: dynamic-stack-buffer-overflow ...
READ of size 400 at 0x7ffe71889e40 thread T0
    #0 0x7f543595ecdf  (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x99cdf)
    #1 0x55dc3acdbb15 in memcpy
    #2 0x55dc3acdbb15 in ImageWindow::paintEvent(QPaintEvent*)
    #3 0x7f5434f86047 in QWidget::event(QEvent*)

The issue is that memcpy will always copy sizeof(lastRegions) bytes into
the array regions. But before this change, regions could be shorter than
lastRegions, leading to a buffer overflow. After this change, maxreg is
always set to N_REG_MAX, the length of lastRegions.
mchamberland pushed a commit to mchamberland/EGSnrc that referenced this pull request Jul 11, 2023
Changing rad generation weighting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant