Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6888749
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:04:01+00:00 2026-05-27T06:04:01+00:00

I am writing a windows kernel mode driver in which I will have to

  • 0

I am writing a windows kernel mode driver in which I will have to manipulate lots of strings. Everywhere it has been advised to use “Safe String” functions instead of normal C functions. However, many of the string functions haven’t been implemented e.g. strchr, strstr.

My question is whether there are any functions which I can use to search for strings within strings in kernel mode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:04:01+00:00Added an answer on May 27, 2026 at 6:04 am

    You can use regular C runtime functions like strstr() in a driver. Avoid focusing on finding a safe version of that function, none exists. There’s no scenario where strchr() or strstr() can corrupt memory unintentionally. They only read, they don’t write. They can certainly cause a blue screen if the input strings are not properly zero-terminated, producing an access violation. But that was a bug elsewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a windows service which will be used to monitor some other services
I'm writing windows service which will process something every couple minutes. Here is some
I'm writing a windows service to consume MSMQ messages. The service will have periods
I will be writing a Windows Service which will give a call to a
I am writing a piece of software that consists of a kernel mode driver
I am writing Windows application (with Borland C++ Builder), which stores large number of
We're writing Windows desktop apps using C++ and Win32. Our dialog boxes have an
I'm writing a Windows Forms application which is supposed to play three sound files
I'm writing a windows C# application which I wish to use data grid views,
I am writing small kernel for the 8086 processor (Working in BC3.1, on Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.