Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [undocumented-behavior]

Undocumented behaviour (or 'features') relates to elements of software not intended for use by end users (and therefore 'undocumented'), but left available for use by the vendor for software support and development.

undocumented-behavior
2 votes
0 answers
37 views

Weird behavior dealing with c++ std::variant comparison and operator functions [duplicate]

I have been trying to make a game in Visual Studio using c++17, and I created a class type called ErrorType to represent all the error numeric values (nan, inf, etc). By using std::variant<long ...
RandomGuy's user avatar
1 vote
1 answer
86 views

NtQueryDirectoryFile: Access Violation on Windows but not Wine

I've looked into using NtQueryDirectoryFile instead of FindFirstFile/FindNextFile to speed up directory iteration. It's a commonly used tactic in software to use NtQueryDirectoryFile, so I implemented ...
user avatar
1 vote
0 answers
883 views

Permission Policy Header, Origin trial feature not enabled: browsing-topics

I've been working on a site in SvelteKit and noticed this new warn. Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'browsing-topics'. I have never seen this in my ...
ixNoah's user avatar
  • 31
0 votes
0 answers
65 views

Purpose of CONSOLE_REAL_OUTPUT_HANDLE macro

I read wincon.h header and I found two macros: CONSOLE_REAL_OUTPUT_HANDLE (LongToHandle(-2)) CONSOLE_REAL_INPUT_HANDLE (LongToHandle(-3)) I've searched across the internet but still didn't find answer....
Ex-Kyuto's user avatar
1 vote
0 answers
38 views

Executing arbitrary JS code in a MATLAB Online session

TL;DR Is it possible to get a handle to the web window containing a MATLAB Online session, from within it, to be able to execute arbitrary JS code? MATLAB Online is a web-app version of MATLAB. As is ...
Dev-iL's user avatar
  • 24k
0 votes
2 answers
262 views

TerminateProcess with GetCurrentProcess() handle and with GetCurrentProcessId() handle

I'm studying Windows Internals. In fact, there's no similar _exit system call like in *nix. The process should terminate itself with TerminateProcess/NtTerminateProcess. ExitProcess/RtlExitUserProcess ...
Ex-Kyuto's user avatar
2 votes
1 answer
899 views

Importing named functions

Google Sheets has a new feature rolled out earlier called named functions and it is pretty useful. However, you need to manually import it into your sheet. I didn't see anything in the docs on how to ...
jason's user avatar
  • 4,229
3 votes
0 answers
152 views

Why does pandas.apply(id, axis=1) return the same id for all rows?

I'm actually facing some problem I cannot understand. Imagine this scenario: df_mock = pd.DataFrame({'v': [[1,2,3],[4,5,6],[7,8,9]]}) class O: def __init__(self, row): self.row = row def ...
Iván Sánchez's user avatar
1 vote
0 answers
351 views

What is this `ConsoleHandle` HANDLE in my PEB?

I'm digging around in my process's PEB and I came across the so-called ConsoleHandle HANDLE in the nested RTL_USER_PROCESS_PARAMETERS struct. So far, I've compared this HANDLE to the standard input, ...
Sir Random's user avatar
1 vote
0 answers
689 views

WSO2 API-manager returns 500 internal server error

I'm trying to use WSO2 to manage some APIs, i followed all the steps in the documentation, everything seems good until i tried invoke my first API that i've deployed on production, unfortunately it ...
aymanintel's user avatar
0 votes
1 answer
828 views

How does the (undocumented) return_value argument for unittest.mock.patch work?

I've seen examples of unittest.mock.patch() and unittest.mock.patch.object() directly using a return_value argument. Example: with patch.object(ProductionClass, 'method', return_value=None) as ...
cowlinator's user avatar
  • 8,238
1 vote
1 answer
797 views

Windows NtCreateFile returning STATUS_INVALID_PARAMETER (using undocumented NT syscall interface)

I thought it might be interesting/fun to write a program in assembly (for 64-bit x86, NASM) that uses the undocumented Windows NT system call interface. Unfourtunately, it appears as though somewhere ...
mobslicer152's user avatar
4 votes
1 answer
145 views

Undocumented '-c' option for Bash's 'declare'?

I was playing around with Bash variables and mistakenly used the -c option (for const) to declare instead of the correct -r option to create a readonly variable. To my surprise, the variable retained ...
Menachem's user avatar
  • 931
0 votes
1 answer
572 views

What is the range of hue values in `Color.init(hue:saturation:brightness:opacity:)`?

The Color initializer init(hue:saturation:brightness:opacity:) is undocumented. I think I can safely assume that saturation, brightness, and opacity normalize to the range of 0...1, where values ...
Ky -'s user avatar
  • 31.8k
2 votes
1 answer
337 views

What is this bash built-in's printf's %a format specifier?

Using Bash 5.0.17(1)-release Performing: LC_NUMERIC=C printf '%a\n' 0.0 Outputs: 0x0p+0 Testing multiple values: for v in 1.0 2.0 42.0 3.141592653589793 do LC_NUMERIC=C printf '%-20s %a\n' "$...
Léa Gris's user avatar
  • 19.1k

15 30 50 per page
1
2 3 4 5 6